MOTION  0.01
Framework for mixed-protocol multi-party computation
Public Types | Public Member Functions | Public Attributes | List of all members
encrypto::motion::RunTimeStatistics Struct Reference

#include <run_time_statistics.h>

Public Types

enum  StatisticsId : std::size_t {
  StatisticsId::kMtPresetup, StatisticsId::kMtSetup, StatisticsId::kSbPresetup, StatisticsId::kSbSetup,
  StatisticsId::kSpPresetup, StatisticsId::kSpSetup, StatisticsId::kOtExtensionSetup, StatisticsId::kPreprocessing,
  StatisticsId::kGatesSetup, StatisticsId::kGatesOnline, StatisticsId::kEvaluate, StatisticsId::kBaseOts,
  StatisticsId::kMax
}
 
using ClockType = std::chrono::steady_clock
 
using TimePoint = std::chrono::time_point< ClockType >
 
using TimePointPair = std::pair< TimePoint, TimePoint >
 

Public Member Functions

TimePoint GetTime ()
 
template<StatisticsId Id>
void RecordStart ()
 
template<StatisticsId Id>
void RecordEnd ()
 
const TimePointPairGet (StatisticsId id) const
 
std::string PrintHumanReadable () const
 

Public Attributes

std::array< TimePointPair, static_cast< std::size_t >StatisticsId::kMax)+1 > data
 

Member Typedef Documentation

◆ ClockType

using encrypto::motion::RunTimeStatistics::ClockType = std::chrono::steady_clock

◆ TimePoint

◆ TimePointPair

Member Enumeration Documentation

◆ StatisticsId

Enumerator
kMtPresetup 
kMtSetup 
kSbPresetup 
kSbSetup 
kSpPresetup 
kSpSetup 
kOtExtensionSetup 
kPreprocessing 
kGatesSetup 
kGatesOnline 
kEvaluate 
kBaseOts 
kMax 

Member Function Documentation

◆ Get()

const RunTimeStatistics::TimePointPair & encrypto::motion::RunTimeStatistics::Get ( StatisticsId  id) const

◆ GetTime()

TimePoint encrypto::motion::RunTimeStatistics::GetTime ( )
inline

◆ PrintHumanReadable()

std::string encrypto::motion::RunTimeStatistics::PrintHumanReadable ( ) const
Here is the call graph for this function:

◆ RecordEnd()

template<StatisticsId Id>
void encrypto::motion::RunTimeStatistics::RecordEnd ( )
inline
Here is the caller graph for this function:

◆ RecordStart()

template<StatisticsId Id>
void encrypto::motion::RunTimeStatistics::RecordStart ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ data

std::array<TimePointPair, static_cast<std::size_t>StatisticsId::kMax) + 1> encrypto::motion::RunTimeStatistics::data

The documentation for this struct was generated from the following files: