Seth Woolley's Man Viewer

ttime(3) - ttime - Get LAM timer value in seconds - man 3 ttime

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

TTIME(3)                       LAM LOCAL LIBRARY                      TTIME(3)



NAME
       ttime - Get LAM timer value in(1,8) seconds.

C SYNOPSIS
       #include <net.h>

       double ttime ();

FORTRAN SYNOPSIS
       double precision FTTIME()

DESCRIPTION
       The  ttime() function enables a program running on any LAM node to read(2,n,1 builtins)
       the current value of the system timer in(1,8) a portable fashion.   This  is
       useful  for  measuring  execution  times  of program sections.  ttime()
       returns the timer value in(1,8) seconds as a double precision floating point
       number.

EXAMPLE
              #include <stdio.h>
              #include <net.h>

              double         time(1,2,n), start, end;

              start = ttime();
              my_sub();
              end = ttime();
              time(1,2,n) = end - start;
              printf(1,3,1 builtins)("my_sub took: %f seconds to execute\n", time(1,2,n));

BUGS
       The  resolution  of the measurements is bound by that of the underlying
       system timer used.



LAM 7.0.6                          May, 2004                          TTIME(3)

References for this manual (incoming links)