#include <thread.h>
Static Public Member Functions | |
time_t | getTime (time_t *tloc=NULL) |
time_t | time (time_t *tloc) |
int | getTimeOfDay (struct timeval *tp) |
int | gettimeofday (struct timeval *tp, struct timezone *tzp) |
tm * | getLocalTime (const time_t *clock, struct tm *result) |
tm * | locatime (const time_t *clock, struct tm *result) |
tm * | getGMTTime (const time_t *clock, struct tm *result) |
tm * | gmtime (const time_t *clock, struct tm *result) |
Static Protected Member Functions | |
void | lock (void) |
void | unlock (void) |
The class has two purposes:
Also note that some functions that returned pointers have been redone to take that pointer as an argument instead, making the caller responsible for memory allocation/deallocation. This is almost how POSIX specifies *_r functions (reentrant versions of the standard time functions), except the POSIX functions also return the given pointer while we do not. We don't use the *_r functions as they aren't all generally available on all platforms yet.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|