Skip to content

Commit d443665

Browse files
committed
Timer: Clean up.
1 parent 665bb49 commit d443665

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/misc/Timer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class Timer {
104104

105105
}
106106

107-
update( timestamp = null ) {
107+
update() {
108108

109109
if ( this._useFixedDelta === true ) {
110110

@@ -113,7 +113,7 @@ class Timer {
113113
} else {
114114

115115
this._previousTime = this._currentTime;
116-
this._currentTime = ( timestamp !== null ) ? timestamp : ( now() - this._startTime );
116+
this._currentTime = now() - this._startTime;
117117

118118
this._delta = this._currentTime - this._previousTime;
119119

0 commit comments

Comments
 (0)