#include <freecloth/base/baTime.h>
Public Types | |
| typedef Int32 | Duration |
| A period of time. | |
| typedef UInt32 | Instant |
| A single point in time. | |
| enum | { MS = 1, S = 1000, MIN = S * 60 } |
Static Public Member Functions | |
| Instant | getTime () |
| Retrieve the current time. | |
| Duration | getDuration (Instant start, Instant end) |
| Calculate the elapsed time between two instants. | |
| Float | instantAsSeconds (Instant) |
| Float | durationAsSeconds (Duration) |
| Instant | floatAsInstant (Float) |
| Duration | floatAsDuration (Float) |
Defines instants and durations, and methods for retrieving the current time and measuring durations.
Definition at line 40 of file baTime.h.
|
|
Return a floating point value representing the given duration as a number, measured in seconds. Definition at line 39 of file baTime.inline.h. |
|
|
Return a floating point value representing the given instant as a number, measured in seconds. Definition at line 32 of file baTime.inline.h. |
1.3-rc3