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();
|
||||
}
|
||||
}
|
||||
|
@ -275,7 +275,13 @@ export class DateWrapper {
|
||||
static fromMillis(ms) {
|
||||
return new Date(ms);
|
||||
}
|
||||
static toMillis(date:Date) {
|
||||
return date.getTime();
|
||||
}
|
||||
static now() {
|
||||
return new Date();
|
||||
}
|
||||
static toJson(date) {
|
||||
return date.toJSON();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user