Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added round trip time contraint to the SDP program, this parameter
[simgrid.git] / src / gras / Virtu / sg_time.c
1 /* $Id$ */
2
3 /* time - time related syscal wrappers                                      */
4
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved.            */
6
7 /* This program is free software; you can redistribute it and/or modify it
8  * under the terms of the license (GNU LGPL) which comes with this package. */
9
10 #include "gras/Virtu/virtu_sg.h"
11
12 /* 
13  * Time elapsed since the begining of the simulation.
14  */
15 double gras_os_time() {
16   return MSG_get_clock();
17 }
18
19 /*
20  * Freeze the process for the specified amount of time
21  */
22 void gras_os_sleep(double sec) {
23   MSG_process_sleep(sec);
24 }