feat(benchpress): add a file reporter
This commit is contained in:
@ -210,7 +210,13 @@ class DateWrapper {
|
||||
static DateTime fromMillis(int ms) {
|
||||
return new DateTime.fromMillisecondsSinceEpoch(ms);
|
||||
}
|
||||
static int toMillis(DateTime date) {
|
||||
return date.millisecondsSinceEpoch;
|
||||
}
|
||||
static DateTime now() {
|
||||
return new DateTime.now();
|
||||
}
|
||||
static toJson(DateTime date) {
|
||||
return date.toUtc().toIso8601String();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user