1 /* time - time related syscal wrappers */
3 /* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #include "gras/Virtu/virtu_sg.h"
10 #include "simix/simix.h"
13 * Time elapsed since the begining of the simulation.
17 /* FIXME: check if we should use the request mechanism or not */
18 return SIMIX_get_clock();
22 * Freeze the process for the specified amount of time
24 void xbt_sleep(double sec)
26 SIMIX_req_process_sleep(sec);
29 const char *xbt_procname(void)
31 return SIMIX_process_self_get_name();