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
Include the original version of the libex library. Still to be fitted to our needs
[simgrid.git]
/
src
/
xbt
/
log_default_appender.c
diff --git
a/src/xbt/log_default_appender.c
b/src/xbt/log_default_appender.c
index
cfe919c
..
7aeb170
100644
(file)
--- a/
src/xbt/log_default_appender.c
+++ b/
src/xbt/log_default_appender.c
@@
-38,10
+38,14
@@
xbt_log_appender_t xbt_log_default_appender = &xbt_log_appender_file;
static const char* xbt_logappender_verbose_information(void) {
static char buffer[256];
static const char* xbt_logappender_verbose_information(void) {
static char buffer[256];
+ static double begin_of_time = -1;
+
+ if (begin_of_time<0)
+ begin_of_time=gras_os_time();
- if(strlen(
gras_os_my
name()))
+ if(strlen(
xbt_proc
name()))
sprintf(buffer,"%s:%s:(%d) %g", gras_os_myname(),
sprintf(buffer,"%s:%s:(%d) %g", gras_os_myname(),
- xbt_procname(),gras_os_getpid(),gras_os_time());
+ xbt_procname(),gras_os_getpid(),gras_os_time()
-begin_of_time
);
else
buffer[0]=0;
else
buffer[0]=0;