MOTION
0.01
Framework for mixed-protocol multi-party computation
|
Go to the documentation of this file.
34 using TimePoint = std::chrono::time_point<ClockType>;
55 template <StatisticsId Id>
57 data[
static_cast<std::size_t
>(Id)].first = ClockType::now();
61 template <StatisticsId Id>
63 data[
static_cast<std::size_t
>(Id)].second = ClockType::now();
void RecordEnd()
Definition: run_time_statistics.h:62
std::pair< TimePoint, TimePoint > TimePointPair
Definition: run_time_statistics.h:35
const TimePointPair & Get(StatisticsId id) const
Definition: run_time_statistics.cpp:36
std::string PrintHumanReadable() const
Definition: run_time_statistics.cpp:45
static C::value_type At(const C &container, RunTimeStatistics::StatisticsId id)
Definition: analysis.cpp:52
static double ToMilliseconds(const RunTimeStatistics::TimePointPair &tpp)
Definition: run_time_statistics.cpp:31
Definition: algorithm_description.cpp:35
std::chrono::time_point< ClockType > TimePoint
Definition: run_time_statistics.h:34
Definition: run_time_statistics.h:32
TimePoint GetTime()
Definition: run_time_statistics.h:53
StatisticsId
Definition: run_time_statistics.h:37
std::array< TimePointPair, static_cast< std::size_t >StatisticsId::kMax)+1 > data
Definition: run_time_statistics.h:71
void RecordStart()
Definition: run_time_statistics.h:56
std::chrono::steady_clock ClockType
Definition: run_time_statistics.h:33