Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
uniformize gras_os_sleep prototype (seconds are double everywhere else, avoid roundin...
[simgrid.git] / src / gras / Virtu / sg_time.c
index 85b014c..ed80c7f 100644 (file)
@@ -9,23 +9,16 @@
 
 #include "gras/Virtu/virtu_sg.h"
 
-/**
- * gras_time:
- * @Returns: The current time
- * 
- * The epoch since when the time is given is not specified. It is thus only usefull to compute intervals
+/* 
+ * Time elapsed since the begining of the simulation.
  */
 double gras_os_time() {
   return MSG_getClock();
 }
 
-/**
- * gras_sleep:
- * @sec: amount of sec to sleep
- * @usec: amount of micro second to sleep
- * 
+/*
  * 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);
 }