Class time_check¶
Defined in File time_check.hpp
Class Documentation¶
-
class
time_check
¶ Tool for program execution checkpointing.
Public Types
-
typedef unsigned
size_type
¶
Public Functions
-
time_check
(const char *name = "", size_type n = 128)¶ Constructs time_check.
- Parameters
name
: name of the object.n
: maximal number of check points.
-
void
start
()¶ Starts checkpointing.
-
void
stop
()¶ Stops checkpointing.
-
void
check
(const std::string &id = "")¶ Creates checkpoint.
- Parameters
id
: name of the checkpoint.
-
double
get_time
() const¶
Friends
-
friend std::ostream &
operator<<
(std::ostream&, const time_check&)¶
-
typedef unsigned