TDMS
Time Domain Maxwell Solver
All Classes Namespaces Files Functions Variables Typedefs Enumerations Macros Pages
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 */
9class Timer {
10
11 double start_time;//< start time in seconds
12 double end_time; //< end time in seconds
13
14public:
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};
Stopwatch class.
Definition timer.h:9
void start()
Definition timer.cpp:8
double delta_seconds() const
Definition timer.cpp:12
void click()
Definition timer.cpp:14
void end()
Definition timer.cpp:10