A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added our tweaked version of NAS benchmarks.
[simgrid.git]
/
examples
/
smpi
/
NAS
/
MPI_dummy
/
wtime.c
1
#include "wtime.h"
2
#include <sys/time.h>
3
4
void wtime(double *t)
5
{
6
static int sec = -1;
7
struct timeval tv;
8
gettimeofday(&tv, (void *)0);
9
if (sec < 0) sec = tv.tv_sec;
10
*t = (tv.tv_sec - sec) + 1.0e-6*tv.tv_usec;
11
}
12
13