sc::RegionTimer(3)
hiii bestie, welcome to sc::RegionTimer(3) β the MPQC manual page π
NAME π
sc::RegionTimer is the class you use to record the time spent in a section of code. literally its whole job, no cap.
SYNOPSIS β¨
#include <regtime.h>
Inherits sc::DescribedClass.
Inherited by sc::ParallelRegionTimer.
Public Member Functions π«Ά
okay here's the full roster, every signature exactly as it appears β no skips, bestie:
RegionTimer (const char *topname='total', int cpu_time=0, int wall_time=1)RegionTimer (const Ref< KeyVal > &)void enter (const char *=0)void change (const char *newname, const char *oldname=0)void exit (const char *=0, bool do_not_throw=false)void set_default (const char *)void unset_default ()void enter_default ()void exit_default ()virtual void print (std::ostream &=ExEnv::out0()) constβ Print the object. yes, it literally prints the object, periodt.void update_top () constint nregion () constvoid get_region_names (const char *names[]) constvoid get_wall_times (double *) constvoid get_cpu_times (double *) constvoid get_flops (double *) constvoid get_depth (int *) constdouble get_wall_time () constdouble get_cpu_time () constdouble get_flops () constvoid add_wall_time (const char *, double)void add_cpu_time (const char *, double)void add_flops (const char *, double)
Static Public Member Functions π
static besties, right this way:
static RegionTimer * default_regiontimer ()static void set_default_regiontimer (const Ref< RegionTimer > &)
Protected Attributes π
the protected little guys:
int wall_time_int cpu_time_int flops_TimedRegion * top_TimedRegion * current_TimedRegion * default_
Additional Inherited Members π
no extra entries are listed under this heading on this page, bestie. that's the whole section. π
Detailed Description π¦
The RegionTimer class is used to record the time spent in a section of code. iconic timing behavior.
During the run of a code, enter and exit members are called to begin and end timed sections. The print member is used to display the obtained times. Multiple enter calls for a region with the same name aggregate the timings. Nested regions are supported. slay.
Author π
This page was generated automatically by Doxygen for MPQC from the source code.
okay bye bestie β this was the sc::RegionTimer(3) page from MPQC, Version 2.3.1, dated Sun Oct 4 2020. mwah πβ¨
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms