20 #ifndef GALOIS_TIMER_H
21 #define GALOIS_TIMER_H
25 #include "galois/config.h"
32 typedef std::chrono::steady_clock clockTy;
34 std::chrono::time_point<clockTy> startT, stopT;
69 StatTimer(
const char* name,
const char* region);
87 template <
bool Enable>
107 template <
typename F>
108 void timeThis(
const F& f,
const char*
const name) {
uint64_t get_usec() const
Definition: Timer.cpp:49
~StatTimer()
Definition: Timer.cpp:71
TimeAccumulator & operator+=(const TimeAccumulator &rhs)
Definition: Timer.cpp:51
A simple timer.
Definition: Timer.h:31
void start()
Definition: Timer.cpp:25
CondStatTimer(const char *)
Definition: Timer.h:99
CondStatTimer(const char *const, const char *)
Definition: Timer.h:100
CondStatTimer(const char *region)
Definition: Timer.h:93
CondStatTimer(const char *const n, const char *region)
Definition: Timer.h:90
StatTimer()
Definition: Timer.h:73
TimeAccumulator()
Definition: Timer.cpp:39
void start() const
Definition: Timer.h:102
void timeThis(const F &f, const char *const name)
Definition: Timer.h:108
uint64_t get_usec() const
Definition: Timer.h:104
void start()
Definition: Timer.cpp:41
A multi-start time accumulator.
Definition: Timer.h:45
void start()
Definition: Timer.cpp:82
uint64_t get_usec() const
Definition: Timer.cpp:92
StatTimer & operator=(const StatTimer &)=delete
void stop()
Definition: Timer.cpp:27
StatTimer(const char *const n)
Definition: Timer.h:71
void stop()
adds the current timed interval to the total
Definition: Timer.cpp:43
void stop() const
Definition: Timer.h:103
void stop()
Definition: Timer.cpp:87
Galois Timer that automatically reports stats upon destruction Provides statistic interface around ti...
Definition: Timer.h:63
uint64_t get_usec() const
Definition: Timer.cpp:34
std::basic_string< char, std::char_traits< char >, Pow2Alloc< char >> Str
Definition: gstl.h:75