Definition at line 32 of file Performance.h.
◆ Timing()
◆ end()
Definition at line 51 of file Performance.h.
52{
53 gettimeofday(&endInterval, NULL);
54}
◆ interval()
double Timing::interval |
( |
| ) |
|
|
inline |
Return time interval between start() and end()
- Returns
- elapsed time in seconds
Definition at line 60 of file Performance.h.
61{
62 return (endInterval.tv_sec + (endInterval.tv_usec/1000000.0)) -
63 (startInterval.tv_sec + (startInterval.tv_usec/1000000.0));
64}
◆ start()
Definition at line 46 of file Performance.h.
47{
48 gettimeofday(&startInterval, NULL);
49}
The documentation for this class was generated from the following file: