Functions | |
void | Show_Time (float *time) |
Returns the time elapsed in the current program execution. More... | |
void Show_Time | ( | float * | time | ) |
Returns the time elapsed in the current program execution.
time | - The time elapsed since the first call to HOOPS in the current program, in seconds. Passed by reference always. Returned to user. |
Enable_Wakeup_Events() and Get_Wakeup() accept their time specifications relative to the time of the call. Show_Time() is provided so that you can convert absolute times to these relative times. You might want to do this if, for example, you play back a timed animation script.
On a few older operating systems, the time might only be accurate to 1 second. HOOPS might try to interpolate fractions of a second on these machines.
On all systems the number of accurate digits to the right of the decimal point in time will get smaller as the number to the left gets larger, due to the finite accuracy of a "float". In the worst known case, after about one day's running time the time parameter will no longer be as accurate as a tenth of a second.