3 /* gras/virtu.h - public interface to virtualization (cross-OS portability) */
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. */
14 #include "xbt/misc.h" /* BEGIN_DECL */
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)
23 * Get the current time.
25 double gras_os_time(void);
29 * @Param1: number of seconds to sleep
30 * @Param2: number of microseconds to sleep
32 * sleeps for the given amount of time.
34 void gras_os_sleep(unsigned long sec, unsigned long usec);
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
44 gras_get_my_fqdn(void);
48 #endif /* GRAS_VIRTU_H */