3#ifndef pRC_CORE_PROFILING_STOPWATCH_H
4#define pRC_CORE_PROFILING_STOPWATCH_H
26 if(clock_gettime(CLOCK_MONOTONIC, &timeSpec))
30 return static_cast<double>(timeSpec.tv_nsec) / 1e9 + timeSpec.tv_sec;
89 return mPerfCycles.
value();
Definition perfevent.hpp:33
auto start()
Definition perfevent.hpp:108
auto reset()
Definition perfevent.hpp:134
auto stop()
Definition perfevent.hpp:118
auto value() const
Definition perfevent.hpp:143
Definition stopwatch.hpp:34
Stopwatch(Stopwatch const &)=delete
auto bytes() const
Definition stopwatch.hpp:112
auto cyclesPerSecond() const
Definition stopwatch.hpp:92
auto cycles() const
Definition stopwatch.hpp:87
Stopwatch(Integer const flops=zero(), Integer const bytes=zero())
Definition stopwatch.hpp:46
auto flopsPerSecond() const
Definition stopwatch.hpp:102
auto seconds() const
Definition stopwatch.hpp:82
auto addFlops(Integer const flops)
Definition stopwatch.hpp:72
auto stop()
Definition stopwatch.hpp:58
auto bytesPerSecond() const
Definition stopwatch.hpp:117
auto flopsPerCycle() const
Definition stopwatch.hpp:107
auto start()
Definition stopwatch.hpp:52
auto reset()
Definition stopwatch.hpp:64
Stopwatch & operator=(Stopwatch &&) &=default
auto bytesPerCycle() const
Definition stopwatch.hpp:122
Stopwatch(Stopwatch &&)=default
auto addBytes(Integer const bytes)
Definition stopwatch.hpp:77
auto flops() const
Definition stopwatch.hpp:97
Stopwatch & operator=(Stopwatch const &)=delete
static void error(Xs &&...args)
Definition log.hpp:14
Definition cholesky.hpp:10
static constexpr auto cast(T const &a)
Definition cast.hpp:11
static Float< 64 > getTimeInSeconds()
Definition stopwatch.hpp:23
static constexpr auto zero()
Definition zero.hpp:12