timing 0.1.1
timing: ^0.1.1 copied to clipboard
Timing is a simple package for tracking performance of both async and sync actions
#
Timing is a simple package for tracking performance of both async and sync actions
var tracker = AsyncTimeTracker();
await tracker.track(() async {
// some async code here
});
// Use results
print('${tracker.duration} ${tracker.innerDuration} ${tracker.slices}');
Building #
Use the following command to re-generate lib/src/timing.g.dart
file:
pub run build_runner build