anyKode Marilou
|
Suspend the calling thread until a specific time.
MU32 WaitTime(MU32 TimeToWait);
Parameters |
Description |
MU32 TimeToWait |
[in] Hour of end of waiting in simulated milliseconds. The precision depends directly on the granularity of simulation (see Wait) |
The current simulated time.
The WaitTime function suspends the execution of the current thread while the TimeToWait time is not reached.
void TimeTest(ModaCPP::Connection *pConnection) { MU32 time=pConnection->GetTime(); _cprintf("Start time=%lu\r\n",time); while(1) { time=pConnection->WaitTime(time+100); //waits 100ms _cprintf("current time=%lu\r\n",time); } } //you can replace pRobot->WaitTime(time+100) for pRobot->Wait(100)
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
|
What do you think about this topic? Send feedback!
|