Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use long int for the pids, just to be sure without doublechecking what the size of...
[simgrid.git] / src / gras / Virtu / sg_time.c
index d83b257..eee9cd5 100644 (file)
  * Time elapsed since the begining of the simulation.
  */
 double gras_os_time() {
-  return MSG_getClock();
+  return MSG_get_clock();
 }
 
 /*
  * Freeze the process for the specified amount of time
  */
-void gras_os_sleep(unsigned long sec,unsigned long usec) {
-  MSG_process_sleep((double)sec + ((double)usec)/1000000);
+void gras_os_sleep(double sec) {
+  MSG_process_sleep(sec);
 }