1.3.1 • Published 2 years ago

react-native-log-time v1.3.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

ReactNative Log Time

console.time is only available when connecting to chrome dev tools, and that will affect the performance, so we wrote this solution to make it available.

Install

npm install -D react-native-log-time

Example

const timeStart = new Date()

for(let i = 0; i < 2000000000; i++) {
    // some calculation
}

console.time(timeStart, 'Calculation is done');
Output
Time Spent: 250 ms;
Calculation is done

Contributing

Make sure to follow conventional commits

1.3.1

2 years ago

1.2.0

2 years ago

1.0.0

2 years ago