SimApi Timer
Jump to navigation
Jump to search
Class SimApi_Timer
Include api.timer.h
Description Provides access to the simulation timer.
Remark - This class provides a set of capablities to retrieve, set and control the simulation time.
Related Links -
Recommended: Simulation Time Overview
Public Class Members
Name | Description |
---|---|
![]() |
Overloaded. Additional information is available. |
![]() |
Gets the simulation time in seconds (number of seconds since mission start) |
![]() |
Gets the delta time in seconds from the last frame |
![]() |
Gets the simulation time in milliseconds (number of milliseconds since mission start) |
![]() |
Gets the simulation time of day in seconds (number of seconds since midnight) |
![]() |
Get time of day in milliseconds (number of milliseconds since midnight) |
![]() |
Gets the mission start time of day. |
![]() |
Sets current simulation time of day in seconds |
![]() |
Sets the timer mode. Possible values: TIMER_SIMULATION=0 or TIMER_SLAVE=1 |
![]() |
Gets the current timer mode |
![]() |
Sets a new simulation time in seconds from mission start |
![]() |
Sets the start time of the session using standard SYSTEMTIME structure of Win32 API |
![]() |
Gets the start time of the session in standard SYSTEMTIME structure of Win32 API |
![]() |
Sets the end time of the session using standard SYSTEMTIME structure of Win32 API |
![]() |
Gets the end time of the session in standard SYSTEMTIME structure of Win32 API |
![]() |
Seeks to time by percentage of the total session time |
![]() |
Gets the current session time in standard SYSTEMTIME structure of Win32 API |
![]() |
Gets a session time on specified percentage of the total session time |
![]() |
Gets the current session position in percentage of total session duration |
![]() |
Gets the percentage value from the total session duration for a specified time value. |
![]() |
Sets the step size in seconds for the simulation timer |
![]() |
Gets the current step size in seconds |
![]() |
Performs one timer's step forward. I.e. sets the current time to current time plus step size |
![]() |
Performs one timer's step forward. I.e. sets the current time to current time minus step size |
![]() |
Gets the admin pause time in seconds. |
![]() |
Sets the "attach time of the day to clock" flag. If attached - 3D engine will update its time of day on time change |
![]() |
Gets the current "attach time of the day to clock" flag state. |