| Bsoft 2.0.5 Bernard's software package

timer.h
Go to the documentation of this file.
1
9 #include <time.h>
10 #include <sys/time.h>
11
12 // Function prototypes
13 double getwalltime();
14 double getcputime();
15 double timer_start();
16 double timer_report(double lasttime);
17
getwalltime
double getwalltime()
Returns the current time.
Definition: timer.cpp:23
timer_report
double timer_report(double lasttime)
Reports the time elapsed since a given time.
Definition: timer.cpp:67
getcputime
double getcputime()
Returns the clock time.
Definition: timer.cpp:40
timer_start
double timer_start()
Starts timer and prints the time.
Definition: timer.cpp:52