#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 Methods | |
| Instant | getTime () |
| Retrieve the current time. | |
| Duration | getDuration (Instant start, Instant end) |
| Calculate the elapsed time between two instants. | |
| Float | instantAsSeconds (Instant) |
| Return a floating point value representing the given instant as a number, measured in seconds. | |
| Float | durationAsSeconds (Duration) |
| Return a floating point value representing the given duration as a number, measured in seconds. | |
| 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.
1.2.14 written by Dimitri van Heesch,
© 1997-2002