|
That Terminal
A terminal emulator designed for video making purposes.
|
Time handling interface. More...

Go to the source code of this file.
Functions | |
| double | GetTime () |
| void | AdvanceTime (double seconds) |
| void | SleepFor (double seconds) |
| void | SetTimeFactor (double factor) |
| void | TimeTerminate () |
Time handling interface.
| void AdvanceTime | ( | double | seconds | ) |
Advances time. Used when TimeFactor is set to 0. Ignored otherwise.
| seconds | Number of seconds to advance. |
| double GetTime | ( | ) |
| void SetTimeFactor | ( | double | factor | ) |
Changes the flow of time.
| factor | Has the following meanings: 0 = time advances only with AdvanceTime 1 = normal time >0 = normal time, but scaled by the given factor (i.e. 2 = time goes twice as fast as realtime) |
| void SleepFor | ( | double | seconds | ) |
Puts this thread into sleep for given time. If timefactor=0, another thread must call AdvanceTime in order for this thread to wake.
| seconds | Time to sleep for, in seconds |
| void TimeTerminate | ( | ) |
Terminates any background process/thread started by the clock module.