This is a horrible hack.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9452
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
"Logging specific to SIMIX (process)");
unsigned long simix_process_maxpid = 0;
"Logging specific to SIMIX (process)");
unsigned long simix_process_maxpid = 0;
+/* FIXME: Ugly hack!*/
+extern double NOW;
/**
* \brief Returns the current agent.
/**
* \brief Returns the current agent.
void SIMIX_pre_process_sleep(smx_req_t req)
{
if (MC_IS_ENABLED) {
void SIMIX_pre_process_sleep(smx_req_t req)
{
if (MC_IS_ENABLED) {
+ NOW += req->process_sleep.duration;
req->process_sleep.result = SIMIX_DONE;
SIMIX_request_answer(req);
}
req->process_sleep.result = SIMIX_DONE;
SIMIX_request_answer(req);
}