Provides some functions that affect time, or ones perception of time. More...
Public Member Functions
|bool||set_time (const time_locus &new_time)|
|makes the current time equal to "new_time". |
Static Public Member Functions
|static void||sleep_ms (basis::un_int msec)|
|a system independent name for a forced snooze measured in milliseconds. |
Provides some functions that affect time, or ones perception of time.
|bool timely::time_control::set_time||(||const time_locus &||new_time||)|
makes the current time equal to "new_time".
This will only work if the operation is supported on this OS and if the current user has the proper privileges.
References timely::day_in_year::day_of_week, timely::day_in_year::day_of_year, timely::clock_time::hour, timely::clock_time::minute, timely::day_in_year::month, timely::clock_time::second, and timely::time_locus::year.
a system independent name for a forced snooze measured in milliseconds.
the application will do nothing on the current thread for the amount of time specified. on some systems, if "msec" is zero, then the sleep will yield the current thread's remaining timeslice back to other threads.
Referenced by timely::timer_driver::~timer_driver().