|
Fireset
|
Time-related functions. More...
Functions | |
| double | fsTimeGetSystemTime (void) |
| Returns the current system time. | |
| double | fsTimeGetDelta (void) |
| Returns the delta time. | |
| double | fsTimeGetTime (void) |
| Returns the engine running time. | |
| void | fsTimeInit (void) |
| Initializes the time module. | |
| void | fsWait (long ms) |
| Waits for a specified duration. | |
Time-related functions.
| double fsTimeGetDelta | ( | void | ) |
Returns the delta time.
Returns the time difference between the current frame and the previous one.
| double fsTimeGetSystemTime | ( | void | ) |
Returns the current system time.
Returns the current system time at the moment this function is called.
| double fsTimeGetTime | ( | void | ) |
Returns the engine running time.
Returns the elapsed time, in seconds, since the time system was initialized with fsTimeInit().
This function provides a monotonic, engine-relative time value and should be used for timing, animations, logging, and time-based calculations inside the engine.
| void fsTimeInit | ( | void | ) |
Initializes the time module.
Initializes the internal time tracking used by the engine.
This function must be called before using any other time-related function.
| void fsWait | ( | long | ms | ) |
Waits for a specified duration.
Pauses the program execution for a given number of milliseconds. Works on Windows and POSIX systems.
| ms | Duration to wait, in milliseconds. |