File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ angular.scenario.ObjectModel = function(runner) {
114
114
} ) ;
115
115
116
116
function complete ( item ) {
117
- item . endTime = new Date ( ) . getTime ( ) ;
117
+ item . endTime = Date . now ( ) ;
118
118
item . duration = item . endTime - item . startTime ;
119
119
item . status = item . status || 'success' ;
120
120
}
@@ -188,7 +188,7 @@ angular.scenario.ObjectModel.prototype.getSpec = function(id) {
188
188
angular . scenario . ObjectModel . Spec = function ( id , name , definitionNames ) {
189
189
this . id = id ;
190
190
this . name = name ;
191
- this . startTime = new Date ( ) . getTime ( ) ;
191
+ this . startTime = Date . now ( ) ;
192
192
this . steps = [ ] ;
193
193
this . fullDefinitionName = ( definitionNames || [ ] ) . join ( ' ' ) ;
194
194
} ;
@@ -234,7 +234,7 @@ angular.scenario.ObjectModel.Spec.prototype.setStatusFromStep = function(step) {
234
234
*/
235
235
angular . scenario . ObjectModel . Step = function ( name ) {
236
236
this . name = name ;
237
- this . startTime = new Date ( ) . getTime ( ) ;
237
+ this . startTime = Date . now ( ) ;
238
238
} ;
239
239
240
240
/**
You can’t perform that action at this time.
0 commit comments