SimApi Timer seekToTime 1

From SIMboxWiki
Jump to navigation Jump to search



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

    Description

    Seeks to a specific time in the simulation in seconds - set new simulation time from mission start

    Parameters

    newTime - new simulation time in seconds

    Remarks
    

TimeChanged simulation event will be published after calling to that function. You can use overloaded function for seeking using SYSTEMTIME structure of Win32 API.


    Code Sample
    

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


    See Also

     timeOfDay

     timeOfDayMs

     seekToTime

    Related Links

     Recommended: Simulation Time Overview