3 /* time - time related syscal wrappers */
5 /* Authors: Martin Quinson */
6 /* Copyright (C) 2003,2004 da GRAS posse. */
8 /* This program is free software; you can redistribute it and/or modify it
9 under the terms of the license (GNU LGPL) which comes with this package. */
11 #include "gras/Virtu/virtu_sg.h"
15 * @Returns: The current time
17 * The epoch since when the time is given is not specified. It is thus only usefull to compute intervals
19 double gras_os_time() {
20 return MSG_getClock();
25 * @sec: amount of sec to sleep
26 * @usec: amount of micro second to sleep
28 * Freeze the process for the specified amount of time
30 void gras_os_sleep(unsigned long sec,unsigned long usec) {
31 MSG_process_sleep((double)sec + ((double)usec)/1000000);