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

21 lines
489 B
TypeScript
Raw Normal View History

/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export class MeasureValues {
constructor(
public runIndex: number, public timeStamp: Date, public values: {[key: string]: any}) {}
toJson() {
return {
2016-09-19 20:15:57 -04:00
'timeStamp': this.timeStamp.toJSON(),
'runIndex': this.runIndex,
2016-09-19 20:15:57 -04:00
'values': this.values,
};
}
}