smx_action_t action;
e_surf_action_state_t state;
+ if (duration < 0.001)
+ return;
+ DEBUG1("Sleep for %f to handle real computation time",duration);
SIMIX_mutex_lock(mutex);
action =
void smpi_start_timer()
{
- SIMIX_mutex_lock(smpi_global->timer_mutex);
xbt_os_timer_start(smpi_global->timer);
}
double duration;
xbt_os_timer_stop(smpi_global->timer);
duration = xbt_os_timer_elapsed(smpi_global->timer);
- SIMIX_mutex_unlock(smpi_global->timer_mutex);
return duration;
}