0 purchases
timing
Timing is a simple package for tracking performance of both async and sync actions
Usage #
var tracker = AsyncTimeTracker();
await tracker.track(() async {
// some async code here
});
// Use results
print('${tracker.duration} ${tracker.innerDuration} ${tracker.slices}');
copied to clipboard
Building #
Use the following command to re-generate lib/src/timing.g.dart file:
dart pub run build_runner build
copied to clipboard
Publishing automation #
For information about our publishing automation and process, see
https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.