angular-cn/modules/benchpress/src/measure_values.ts

16 lines
428 B
TypeScript

import {Date, DateWrapper} from 'angular2/src/facade/lang';
import {StringMap, Map} from 'angular2/src/facade/collection';
export class MeasureValues {
constructor(public runIndex: number, public timeStamp: Date,
public values: StringMap<string, any>) {}
toJson() {
return {
'timeStamp': DateWrapper.toJson(this.timeStamp),
'runIndex': this.runIndex,
'values': this.values
};
}
}