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 <stddef.h> /* offsetof() */
15 #include <sys/types.h> /* size_t */
19 /*! C++ users need love */
22 # define BEGIN_DECL extern "C" {
28 /*! C++ users need love */
36 /* End of cruft for C++ */
43 * Get the time in number of second since the Epoch.
44 * (00:00:00 UTC, January 1, 1970 in Real Life, and begining of simulation in SG)
46 double gras_time(void);
50 * @sec: number of seconds to sleep
51 * @usec: number of microseconds to sleep
53 * sleeps for the given amount of seconds plus the given amount of microseconds.
55 void gras_sleep(unsigned long sec, unsigned long usec);
59 #endif /* GRAS_VIRTU_H */