Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Destruction of a relic of the revolution gras->xbt
[simgrid.git] / include / gras / virtu.h
1 /* $Id$                     */
2
3 /* gras/virtu.h - public interface to virtualization (cross-OS portability) */
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 #ifndef GRAS_VIRTU_H
12 #define GRAS_VIRTU_H
13
14 #include "xbt/misc.h" /* BEGIN_DECL */
15
16 BEGIN_DECL
17
18 /**
19  * gras_os_time:
20  * @Returns: number of second since the Epoch.
21  * (00:00:00 UTC, January 1, 1970 in Real Life, and begining of simulation in SG)
22  * 
23  * Get the current time.
24  */
25 double gras_os_time(void);
26
27 /**
28  * gras_os_sleep:
29  * @Param1: number of seconds to sleep
30  * @Param2: number of microseconds to sleep
31  * 
32  * sleeps for the given amount of time.
33  */
34 void gras_os_sleep(unsigned long sec, unsigned long usec);
35
36 /**
37  * gras_get_my_fqdn:
38  *
39  * Returns the fully-qualified name of the host machine, or NULL if the name
40  * cannot be determined.  Always returns the same value, so multiple calls
41  * cause no problems.
42  */
43 const char *
44 gras_get_my_fqdn(void);
45
46 END_DECL
47
48 #endif /* GRAS_VIRTU_H */
49