helib::FHEtimer Class Reference

A simple class to accumulate time. More...

#include <timing.h>

Public Member Functions

 FHEtimer (const char *_name, const char *_loc)
 
void reset ()
 
double getTime () const
 
long getNumCalls () const
 

Public Attributes

const char * name
 
const char * loc
 
HELIB_atomic_ulong counter
 
HELIB_atomic_long numCalls
 

Detailed Description

A simple class to accumulate time.

Constructor & Destructor Documentation

◆ FHEtimer()

helib::FHEtimer::FHEtimer ( const char *  _name,
const char *  _loc 
)
inline

Member Function Documentation

◆ getNumCalls()

long helib::FHEtimer::getNumCalls ( ) const

◆ getTime()

double helib::FHEtimer::getTime ( ) const

◆ reset()

void helib::FHEtimer::reset ( )

Member Data Documentation

◆ counter

HELIB_atomic_ulong helib::FHEtimer::counter

◆ loc

const char* helib::FHEtimer::loc

◆ name

const char* helib::FHEtimer::name

◆ numCalls

HELIB_atomic_long helib::FHEtimer::numCalls