SimApi Timer seekToTime 1

From SIMboxWiki
Revision as of 19:01, 16 March 2010 by Ofirs (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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


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


    newTime - new simulation time in seconds


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




    Related Links

     Recommended: Simulation Time Overview