Platform_Time Class Reference
[Platform]
Platform independent abstraction of time functions.
More...
Inheritance diagram for Platform_Time:

Classes | |
| struct | SystemTime |
Public Member Functions | |
| virtual | ~Platform_Time () |
| virtual float | GetTime ()=0 |
| virtual SystemTime | GetSystemTime (bool utcTime=false)=0 |
Detailed Description
Platform independent abstraction of time functions.Provides functionality to get the current time, in various ways.
Definition at line 20 of file Platform_Time.h.
Constructor & Destructor Documentation
| virtual Platform_Time::~Platform_Time | ( | ) | [virtual] |
Destructor
Definition at line 26 of file Platform_Time.h.
Member Function Documentation
| virtual float Platform_Time::GetTime | ( | ) | [pure virtual] |
Retrieves the current time, as measured from the start of the application
- Returns:
- The number of seconds since the application was started
Implemented in Platform_NULL_Time, and Platform_Win32_Time.
| virtual SystemTime Platform_Time::GetSystemTime | ( | bool | utcTime = false |
) | [pure virtual] |
Retrieves the local current date and time. If the utcTime parameter is set to true, the UTC (universal time) equivalent to the local time is returned.
- Returns:
- The current date and time (local or UTC)
- Parameters:
-
utcTime When set to true, specifies that UTC time should be retrieved instead of local time
Implemented in Platform_NULL_Time, and Platform_Win32_Time.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
