virtual void
StartMinRunTimeTimer (int nSeconds)
Documentation
Starts the timer to enforce the minimum run time for the driver.
Concurrency | rsSequentialConcurrency | Visibility | rsProtected |
Code
// Set the minimum run time for the driver
bMinRunTimeCompleted = true;
if (nSeconds > 0)
{
RTTimerId minRunTimeTid = RQART_Timer.informIn(RTTimespec(nSeconds, 0));
if (minRunTimeTid.isValid())
bMinRunTimeCompleted = false;
else
RQART_Log.log("Driver timer could not be started.");
}
Parameter nSeconds