How to Wait for a Given Time

Explains how to use the At() function to wait.

Use the At() function to set the timer to complete at a specific time.

The following example suspends the thread until the current time plus ten seconds.

      // get current time (microseconds since 0AD nominal Gregorian)
TTime time; 

// add ten seconds to the time
TTimeIntervalSeconds timeIntervalSeconds(10);
time += timeIntervalSeconds;

// issue and wait