oden/src/time.ts

13 lines
397 B
TypeScript

import * as time from "time-core";
/**
* Get the time elasped since the start of the program.
* @returns The time since the start of the program, in fractional seconds.
*/
export const since_start = time.since_start;
/**
* Get the time elasped since the last frame.
* @returns The time since the last frame, in fractional seconds.
*/
export const since_last_frame = time.since_last_frame;