Skip to content

Class uipc::Timer

ClassList > uipc > Timer

Public Functions

Type Name
Timer (std::string_view blockName, bool force_on=false)
double elapsed () const
~Timer ()

Public Static Functions

Type Name
void disable_all ()
void enable_all ()
void report (std::ostream & o=std::cout)
Json report_as_json ()
void set_sync_func (std::function< void()> sync)

Public Functions Documentation

function Timer

uipc::Timer::Timer (
    std::string_view blockName,
    bool force_on=false
) 

function elapsed

double uipc::Timer::elapsed () const

function ~Timer

uipc::Timer::~Timer () 

Public Static Functions Documentation

function disable_all

static inline void uipc::Timer::disable_all () 

function enable_all

static inline void uipc::Timer::enable_all () 

function report

static void uipc::Timer::report (
    std::ostream & o=std::cout
) 

function report_as_json

static Json uipc::Timer::report_as_json () 

function set_sync_func

static inline void uipc::Timer::set_sync_func (
    std::function< void()> sync
) 


The documentation for this class was generated from the following file include/uipc/common/timer.h