3 /* gras/virtu.h - public interface to virtualization (cross-OS portability) */
5 /* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
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. */
13 #include "xbt/misc.h" /* BEGIN_DECL */
19 * @Returns: number of second since the Epoch.
20 * (00:00:00 UTC, January 1, 1970 in Real Life, and begining of simulation in SG)
22 * Get the current time.
24 double gras_os_time(void);
28 * @Param1: number of seconds to sleep
29 * @Param2: number of microseconds to sleep
31 * sleeps for the given amount of time.
33 void gras_os_sleep(unsigned long sec, unsigned long usec);
38 * Returns the fully-qualified name of the host machine, or NULL if the name
39 * cannot be determined. Always returns the same value, so multiple calls
43 gras_get_my_fqdn(void);
47 #endif /* GRAS_VIRTU_H */