1TTIME(3)                       LAM LOCAL LIBRARY                      TTIME(3)
2
3
4

NAME

6       ttime - Get LAM timer value in seconds.
7

C SYNOPSIS

9       #include <net.h>
10
11       double ttime ();
12

FORTRAN SYNOPSIS

14       double precision FTTIME()
15

DESCRIPTION

17       The  ttime() function enables a program running on any LAM node to read
18       the current value of the system timer in a portable fashion.   This  is
19       useful  for  measuring  execution  times  of program sections.  ttime()
20       returns the timer value in seconds as a double precision floating point
21       number.
22

EXAMPLE

24              #include <stdio.h>
25              #include <net.h>
26
27              double         time, start, end;
28
29              start = ttime();
30              my_sub();
31              end = ttime();
32              time = end - start;
33              printf("my_sub took: %f seconds to execute\n", time);
34

BUGS

36       The  resolution  of the measurements is bound by that of the underlying
37       system timer used.
38
39
40
41LAM 7.1.2                         March, 2006                         TTIME(3)
Impressum