File tree Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Expand file tree Collapse file tree 2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change 8
8
* ... pass some time ...
9
9
* var timeDifference = timer.timeElapsed();
10
10
* ---
11
- * Or, you can use the `time` and `relativeTime`
11
+ * Or, you can use the `time` function
12
12
* to do some measurement yourself.
13
13
*/
14
14
@@ -68,17 +68,6 @@ class Timer {
68
68
return this . nowObj . now ( ) ;
69
69
}
70
70
71
- /**
72
- * Returns a time accurate relative to other times produced by this function.
73
- * If possible, will use sub-millisecond precision.
74
- * If not, will use millisecond precision.
75
- * Not guaranteed to produce the same absolute values per-system.
76
- * @returns {number } ms-scale accurate time relative to other relative times.
77
- */
78
- relativeTime ( ) {
79
- return this . nowObj . now ( ) ;
80
- }
81
-
82
71
/**
83
72
* Start a timer for measuring elapsed time,
84
73
* at the most accurate precision possible.
Original file line number Diff line number Diff line change @@ -78,15 +78,6 @@ class MockTimer {
78
78
return this . _mockTime ;
79
79
}
80
80
81
- /**
82
- * Returns a time accurate relative to other times produced by this function.
83
- * @returns {number } ms-scale accurate time relative to other relative times.
84
- * @memberof MockTimer
85
- */
86
- relativeTime ( ) {
87
- return this . _mockTime ;
88
- }
89
-
90
81
/**
91
82
* Start a timer for measuring elapsed time.
92
83
* @memberof MockTimer
You can’t perform that action at this time.
0 commit comments