3 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_util, smpi,
4 "Logging specific to SMPI (utilities)");
7 int smpi_gettimeofday(struct timeval *tv, struct timezone *tz)
16 now = SIMIX_get_clock();
18 tv->tv_usec = ((now - (double) tv->tv_sec) * 1000000.0);
24 unsigned int smpi_sleep(unsigned int seconds)
30 host = SIMIX_host_self();
31 action = SIMIX_action_sleep(host, (double)seconds);
32 smpi_process_wait_action(action);
33 SIMIX_action_destroy(action);
38 void smpi_exit(int status)
41 smpi_process_finalize();
42 SIMIX_process_kill(SIMIX_process_self());