X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8c354c48ec90c997cc7213ce96ca97d882934166..778f65057da68465382593cd036b6ee59ada54e9:/src/gras/Virtu/sg_time.c diff --git a/src/gras/Virtu/sg_time.c b/src/gras/Virtu/sg_time.c index 9ed34ed657..eee9cd5a4c 100644 --- a/src/gras/Virtu/sg_time.c +++ b/src/gras/Virtu/sg_time.c @@ -2,30 +2,23 @@ /* time - time related syscal wrappers */ -/* Copyright (c) 2004 Martin Quinson. All rights reserved. */ +/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "gras/Virtu/virtu_sg.h" -/** - * gras_time: - * @Returns: The current time - * - * The epoch since when the time is given is not specified. It is thus only usefull to compute intervals +/* + * Time elapsed since the begining of the simulation. */ double gras_os_time() { - return MSG_getClock(); + return MSG_get_clock(); } -/** - * gras_sleep: - * @sec: amount of sec to sleep - * @usec: amount of micro second to sleep - * +/* * Freeze the process for the specified amount of time */ -void gras_os_sleep(unsigned long sec,unsigned long usec) { - MSG_process_sleep((double)sec + ((double)usec)/1000000); +void gras_os_sleep(double sec) { + MSG_process_sleep(sec); }