MCPcopy Create free account
hub / github.com/pmndrs/postprocessing / Timer

Class Timer

types/index.d.ts:5146–5200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5144 * @implements {EventListenerObject}
5145 */
5146export class Timer implements Disposable, ImmutableTimer, EventListenerObject {
5147
5148 handleEvent(object: Event): void;
5149 /**
5150 * The current delta time in seconds.
5151 */
5152 get delta(): number;
5153 /**
5154 * The fixed delta time in seconds.
5155 */
5156 get fixedDelta(): number;
5157 set fixedDelta(value: number);
5158 /**
5159 * The elapsed time in seconds.
5160 */
5161 get elapsed(): number;
5162 /**
5163 * Determines whether this timer should use a fixed time step.
5164 */
5165 useFixedDelta: boolean;
5166 /**
5167 * The timescale.
5168 */
5169 timescale: number;
5170 /**
5171 * Enables or disables auto reset based on page visibility.
5172 *
5173 * If enabled, the timer will be reset when the page becomes visible. This effectively pauses the timer when the page
5174 * is hidden. Has no effect if the API is not supported.
5175 *
5176 * @see https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
5177 */
5178 get autoReset(): boolean;
5179 set autoReset(value: boolean);
5180
5181 getDelta(): number;
5182 getElapsed(): number;
5183 /**
5184 * Updates this timer.
5185 *
5186 * @param {Number} [timestamp] - The current time in milliseconds.
5187 */
5188 update(timestamp?: number): void;
5189 /**
5190 * Resets this timer.
5191 *
5192 * @return {Timer} This timer.
5193 */
5194 reset(): Timer;
5195 /**
5196 * Disposes this timer.
5197 */
5198 dispose(): void;
5199
5200}
5201
5202/**
5203 * An ASCII effect.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…