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
more cleanups in NAS
[simgrid.git]
/
examples
/
smpi
/
NAS
/
common
/
c_timers.c
diff --git
a/examples/smpi/NAS/common/c_timers.c
b/examples/smpi/NAS/common/c_timers.c
index
c8c81e7
..
a3af153
100644
(file)
--- a/
examples/smpi/NAS/common/c_timers.c
+++ b/
examples/smpi/NAS/common/c_timers.c
@@
-1,43
+1,25
@@
-
#include "mpi.h"
double start[64], elapsed[64];
#include "mpi.h"
double start[64], elapsed[64];
-/*****************************************************************/
-/****** T I M E R _ C L E A R ******/
-/*****************************************************************/
void timer_clear( int n )
{
elapsed[n] = 0.0;
}
void timer_clear( int n )
{
elapsed[n] = 0.0;
}
-
-/*****************************************************************/
-/****** T I M E R _ S T A R T ******/
-/*****************************************************************/
void timer_start( int n )
{
start[n] = MPI_Wtime();
}
void timer_start( int n )
{
start[n] = MPI_Wtime();
}
-
-/*****************************************************************/
-/****** T I M E R _ S T O P ******/
-/*****************************************************************/
void timer_stop( int n )
{
double t, now;
void timer_stop( int n )
{
double t, now;
-
now = MPI_Wtime();
t = now - start[n];
elapsed[n] += t;
now = MPI_Wtime();
t = now - start[n];
elapsed[n] += t;
-
}
}
-
-/*****************************************************************/
-/****** T I M E R _ R E A D ******/
-/*****************************************************************/
double timer_read( int n )
{
return( elapsed[n] );
double timer_read( int n )
{
return( elapsed[n] );