SimApi Timer setTime

From SIMboxWiki
Jump to navigation Jump to search

Icon attributes.pngstatic void SimApi::Timer::setTime(const double newTime)


    Sets a new simulation time in seconds from mission start


    newTime - new simulation time in seconds


This function will be used when we would like to synchronize the simulation time with an external source.

    Code Sample

SimApi::Timer::setTime(10.3); // Set simulation time to 00:00:10:300 from the mission start

    See Also



    Related Links

     Recommended: Simulation Time Overview