Skip to content

Commit

Permalink
refactor: opt code
Browse files Browse the repository at this point in the history
  • Loading branch information
GuoLei1990 committed Mar 20, 2023
1 parent b5a740e commit 12a8910
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/src/base/Time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ export class Time {
}

/**
* The unscaled delta time in seconds from the last frame to the current frame.
* The amount of elapsed time in seconds since the start of the engine.
*/
get unscaledDeltaTime(): number {
return this._unscaledDeltaTime;
get elapsedTime(): number {
return this._elapsedTime;
}

/**
* The amount of elapsed time in seconds since the start of the engine.
* The unscaled delta time in seconds from the last frame to the current frame.
*/
get elapsedTime(): number {
return this._elapsedTime;
get unscaledDeltaTime(): number {
return this._unscaledDeltaTime;
}

/**
Expand Down

0 comments on commit 12a8910

Please sign in to comment.