Measures time intervals. More...
|Constructs a Clock. |
|Clock (const Clock &cl)|
|Clock &||operator= (const Clock &cl)|
|Start the clock and return the current system ticks. |
|Timespan||stop () const|
|Stop the clock. |
|static DateTime||getSystemTime ()|
|Returns the system time. |
|static DateTime||getLocalTime ()|
|Returns the current local time. |
|static Timespan||getSystemTicks ()|
|Returns the timespan since a fixed point in the past. |
Measures time intervals.
Constructor & Destructor Documentation
Constructs a Clock.
|cxxtools::Clock::Clock||(||const Clock &||cl||)|
Member Function Documentation
Returns the current local time.
Returns the timespan since a fixed point in the past.
The getSystemTicks function retrieves the system ticks, in milliseconds. The system time is the time elapsed since i.e. the system was started, or the unix epoch or some other fixed point in the past.
Returns the system time.
Start the clock and return the current system ticks.
Stop the clock.
Can be called several times.
Returns the elapsed time since start was called. Since stop does not change the start time it can be called several times in order to get the elapsed time.
The documentation for this class was generated from the following file: