 |
Shiokaze Framework
A research-oriented fluid solver for computer graphics
|
|
Go to the documentation of this file.
25 #ifndef SHKZ_SCOPE_TIMER_H
26 #define SHKZ_SCOPE_TIMER_H
47 scoped_timer( std::string master_name=
"", std::string secondary_name=
"" );
75 double tock( std::string subname=
"" );
84 std::string
stock( std::string subname=
"" );
88 std::stack<double> m_time_stack;
89 std::string m_master_name;
Timer designed to calculate the timings within scope.
Definition: scoped_timer.h:37
virtual ~scoped_timer()
Default destructor for scoped_timer.
std::string stock(std::string subname="")
Stop recording time and return time string.
#define SHKZ_BEGIN_NAMESPACE
Name space beggining definition for shiokaze.
Definition: common.h:39
scoped_timer(std::string master_name="", std::string secondary_name="")
Cnstructor.
void tick()
Start recording time.
Class that defines the name, argument name, author's name, email address, date and the version of the...
Definition: credit.h:47
#define SHKZ_END_NAMESPACE
Name space end definition for shiokaze.
Definition: common.h:44
double tock(std::string subname="")
Stop recording time.