diff options
Diffstat (limited to 'libcore')
-rw-r--r-- | libcore/helpers.c | 5 | ||||
-rw-r--r-- | libcore/helpers.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libcore/helpers.c b/libcore/helpers.c index 4ca2272..4da97f7 100644 --- a/libcore/helpers.c +++ b/libcore/helpers.c @@ -167,9 +167,12 @@ vector<string>& splitstring::split(char delim, int rep) { return flds; } -cStopWatch::cStopWatch(void) { +cStopWatch::cStopWatch(const char* message) { start = cTimeMs::Now(); last = start; + if (message) { + dsyslog("skindesigner: Starting StopWatch %s", message); + } } void cStopWatch::Report(const char* message) { diff --git a/libcore/helpers.h b/libcore/helpers.h index 2a92efb..abfae6d 100644 --- a/libcore/helpers.h +++ b/libcore/helpers.h @@ -33,7 +33,7 @@ private: uint64_t start; uint64_t last; public: - cStopWatch(void); + cStopWatch(const char* message = NULL); ~cStopWatch(void) {}; void Report(const char* message); void Stop(const char* message); |