TDMS
Time Domain Maxwell Solver
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1
/**
2
* @file timer.h
3
* @brief Class wrapper for timing with OpenMP's wall timing.
4
*/
5
6
/**
7
* @brief Stopwatch class.
8
*/
9
class
Timer
{
10
11
double
start_time;
//< start time in seconds
12
double
end_time;
//< end time in seconds
13
14
public
:
15
/** Starts the stopwatch */
16
void
start
();
17
/** Stops the stopwatch */
18
void
end
();
19
/** Log the difference in time and reset the timer */
20
void
click
();
21
/** Time difference */
22
double
delta_seconds
()
const
;
23
};
Timer
Stopwatch class.
Definition
timer.h:9
Timer::start
void start()
Definition
timer.cpp:8
Timer::delta_seconds
double delta_seconds() const
Definition
timer.cpp:12
Timer::click
void click()
Definition
timer.cpp:14
Timer::end
void end()
Definition
timer.cpp:10
tdms
include
timer.h
Generated by
1.15.0