Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More work on SG, almost done
[simgrid.git] / src / gras / Virtu / sg_time.c
1 /* $Id$ */
2
3 /* time - time related syscal wrappers                                      */
4
5 /* Authors: Martin Quinson                                                  */
6 /* Copyright (C) 2003,2004 da GRAS posse.                                   */
7
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. */
10
11 #include "Virtu/virtu_sg.h"
12
13 double gras_time() {
14   return MSG_getClock();
15 }
16  
17 void gras_sleep(unsigned long sec,unsigned long usec) {
18   MSG_process_sleep((double)sec + ((double)usec)/1000000);
19 }