Skip to content
Snippets Groups Projects
Commit b086927f authored by Mark Woolrich's avatar Mark Woolrich
Browse files

Checked in prior to CVS conversion

parent 7f020e59
No related branches found
No related tags found
No related merge requests found
...@@ -82,9 +82,18 @@ namespace Utilities{ ...@@ -82,9 +82,18 @@ namespace Utilities{
class Time_Tracer class Time_Tracer
{ {
public: public:
Time_Tracer(const char* str)
{
construct(str);
}
Time_Tracer(char* str) Time_Tracer(char* str)
{ {
construct(str);
}
void construct(const char* str)
{
if(instantstack || runningstack) if(instantstack || runningstack)
{ {
stk.push(string(str)); stk.push(string(str));
...@@ -117,7 +126,7 @@ namespace Utilities{ ...@@ -117,7 +126,7 @@ namespace Utilities{
timingFunction->start(); timingFunction->start();
} }
} }
virtual ~Time_Tracer() virtual ~Time_Tracer()
{ {
if(instantstack) if(instantstack)
......
...@@ -26,6 +26,12 @@ namespace Utilities { ...@@ -26,6 +26,12 @@ namespace Utilities {
class Tracer_Plus : public Tracer, public Time_Tracer class Tracer_Plus : public Tracer, public Time_Tracer
{ {
public: public:
Tracer_Plus(const char* str) :
Tracer(const_cast<char*>(str)),
Time_Tracer(str)
{
}
Tracer_Plus(char* str) : Tracer_Plus(char* str) :
Tracer(str), Tracer(str),
Time_Tracer(str) Time_Tracer(str)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment