1.3.1 • Published 2 years ago
react-native-log-time v1.3.1
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