time_log 0.1.1

Dart native js
Flutter Android iOS web

Like javascript console.time, console.timeEnd in Dart

time_log #

Like console.time, console.timeEnd, print timelong;

API #

API: https://pub.dev/documentation/time_log/latest/time_log/TimeLog-class.html

Getting Started #

Example:

import 'package:time_log/time_log.dart';

void main() {
  var p = TimeLog.point();
  for (var i = 0; i < 100; i++) {
    print('test run time');
  }
  TimeLog.long(p); // Use time: 1.320ms
}

Change Log string #

import 'package:time_log/time_log.dart';

void main() {
  var p = TimeLog.point();
  for (var i = 0; i < 100; i++) {
    print('test run time');
  }
  TimeLog.long(p, 'Oh: '); // Oh: 1.320ms
}

Only print in develop #

TimeLog.isLog = false;
0
likes
90
pub points
23%
popularity

Like javascript console.time, console.timeEnd in Dart

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ymblender@gmail.com

License

BSD (LICENSE)

More

Packages that depend on time_log