16 lines
364 B
Dart
16 lines
364 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
class EnteWatch extends Stopwatch {
|
|
final String context;
|
|
|
|
EnteWatch(this.context) : super();
|
|
|
|
void log(String msg) {
|
|
debugPrint("[$context]: $msg took ${elapsed.inMilliseconds} ms");
|
|
}
|
|
|
|
void logAndReset(String msg) {
|
|
debugPrint("[$context]: $msg took ${elapsed.inMilliseconds} ms");
|
|
reset();
|
|
}
|
|
}
|