.. doxygenfunction:: simgrid::s4u::Engine::get_clock()
.. doxygenfunction:: simgrid::s4u::Engine::run
+ .. doxygenfunction:: simgrid::s4u::Engine::run_until
.. group-tab:: Python
.. automethod:: simgrid.Engine.get_clock
.. automethod:: simgrid.Engine.run
+ .. automethod:: simgrid.Engine.run_until
.. group-tab:: C
* \endrst
*/
XBT_PUBLIC void simgrid_load_deployment(const char* filename);
-/** Run the simulation after initialization */
+/** Run the simulation until its end */
XBT_PUBLIC void simgrid_run();
+/** Run the simulation until the specified date */
+XBT_PUBLIC void simgrid_run_until(double max_date);
/** Registers the main function of an actor that will be launched from the deployment file */
XBT_PUBLIC void simgrid_register_function(const char* name, void (*code)(int, char**));
/** Registers a function as the default main function of actors
{
simgrid::s4u::Engine::get_instance()->run();
}
+void simgrid_run_until(double max_date)
+{
+ simgrid::s4u::Engine::get_instance()->run_until(max_date);
+}
void simgrid_register_function(const char* name, void (*code)(int, char**))
{
simgrid::s4u::Engine::get_instance()->register_function(name, code);