A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added round trip time contraint to the SDP program, this parameter
[simgrid.git]
/
src
/
gras
/
Virtu
/
sg_time.c
diff --git
a/src/gras/Virtu/sg_time.c
b/src/gras/Virtu/sg_time.c
index
7dec70e
..
eee9cd5
100644
(file)
--- a/
src/gras/Virtu/sg_time.c
+++ b/
src/gras/Virtu/sg_time.c
@@
-2,31
+2,23
@@
/* time - time related syscal wrappers */
/* time - time related syscal wrappers */
-/* Authors: Martin Quinson */
-/* Copyright (C) 2003,2004 da GRAS posse. */
+/* Copyright (c) 2003, 2004 Martin Quinson. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
/* 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. */
+
*
under the terms of the license (GNU LGPL) which comes with this package. */
#include "gras/Virtu/virtu_sg.h"
#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() {
*/
double gras_os_time() {
- return MSG_get
C
lock();
+ return MSG_get
_c
lock();
}
}
-/**
- * gras_sleep:
- * @sec: amount of sec to sleep
- * @usec: amount of micro second to sleep
- *
+/*
* Freeze the process for the specified amount of time
*/
* Freeze the process for the specified amount of time
*/
-void gras_os_sleep(
unsigned long sec,unsigned long u
sec) {
- MSG_process_sleep(
(double)sec + ((double)usec)/1000000
);
+void gras_os_sleep(
double
sec) {
+ MSG_process_sleep(
sec
);
}
}