Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#ifndef SIMULATION_TIME_H
|
||||
#define SIMULATION_TIME_H
|
||||
|
||||
#include <chrono>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
struct TimerEvent {
|
||||
std::chrono::time_point<std::chrono::high_resolution_clock> start;
|
||||
std::chrono::time_point<std::chrono::high_resolution_clock> stop;
|
||||
std::chrono::duration<double, std::nano> total_timespan;
|
||||
};
|
||||
|
||||
class SimulationTimer {
|
||||
public:
|
||||
static void eventStartPoint(std::string event_name);
|
||||
static void eventStopPoint(std::string event_name);
|
||||
static void printDurations();
|
||||
|
||||
private:
|
||||
static std::map<std::string, TimerEvent> timed_events_;
|
||||
};
|
||||
|
||||
#endif /* SIMULATION_TIME_H */
|
||||
Reference in New Issue
Block a user