Skip to content

Commit

Permalink
Timer: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Oct 24, 2023
1 parent 665bb49 commit d443665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/misc/Timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Timer {

}

update( timestamp = null ) {
update() {

if ( this._useFixedDelta === true ) {

Expand All @@ -113,7 +113,7 @@ class Timer {
} else {

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

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

Expand Down

0 comments on commit d443665

Please sign in to comment.