SimApi Timer setTime

From SIMboxWiki
Jump to navigation Jump to search



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

    Description

    Sets a new simulation time in seconds from mission start

    Parameters

    newTime - new simulation time in seconds

    Remarks
    

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

     timeInMilliSec

     time

    Related Links

     Recommended: Simulation Time Overview