Parent Directory | Revision Log | Revision Graph | Patch
revision 1.1 by cnh, Tue Sep 29 19:25:49 1998 UTC | revision 1.2 by cnh, Tue Sep 29 21:22:33 1998 UTC | |
---|---|---|
# | Line 0 | Line 1 |
1 | #include <mpi.h> | |
2 | #include <stdio.h> | |
3 | #include <stdlib.h> | |
4 | #include <unistd.h> | |
5 | #include <assert.h> | |
6 | #include <sys/time.h> | |
7 | void cloc_( double *curtim ) | |
8 | { | |
9 | struct timespec tv1; | |
10 | getclock(TIMEOFDAY, &tv1); | |
11 | *curtim = (double)((tv1.tv_nsec)+(tv1.tv_sec)*1.E9); | |
12 | *curtim = *curtim/1E9; | |
13 | } | |
14 |
|
ViewVC Help | |
Powered by ViewVC 1.1.22 |