timing 0.1.1+1

  • README.md
  • Installing
  • Versions
  • 88

Build Status #

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

0.1.1+1 #

  • Support the latest version of package:json_annotation.

0.1.1 #

  • Add JSON serialization

0.1.0 #

  • Initial release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  timing: ^0.1.1+1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:timing/timing.dart';
Version Uploaded Documentation Archive
0.1.1+1 Oct 23, 2018 Go to the documentation of timing 0.1.1+1 Download timing 0.1.1+1 archive
0.1.1 Sep 18, 2018 Go to the documentation of timing 0.1.1 Download timing 0.1.1 archive
0.1.0 Sep 11, 2018 Go to the documentation of timing 0.1.0 Download timing 0.1.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on May 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.1
  • pana: 0.12.16


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:timing/timing.dart.

Health suggestions

Fix lib/src/timing.dart. (-0.50 points)

Analysis of lib/src/timing.dart reported 1 hint:

line 63 col 18: Don't type annotate initializing formals.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and timing.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
json_annotation >=1.0.0 <3.0.0 2.4.0
Dev dependencies
build_runner ^1.0.0
json_serializable ^1.0.0
pedantic ^1.1.0
test ^1.0.0