diff options
author | louis <louis.braun@gmx.de> | 2014-11-02 17:32:22 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-11-02 17:32:22 +0100 |
commit | 037e8e0cb128734a447d472ea2345eea02ee65b6 (patch) | |
tree | 032714a0f749d486aa65d0444251154b864970dc /libcore | |
parent | ef4502cc02b4a1b287b6710826f04f953fd4691b (diff) | |
download | vdr-plugin-skindesigner-037e8e0cb128734a447d472ea2345eea02ee65b6.tar.gz vdr-plugin-skindesigner-037e8e0cb128734a447d472ea2345eea02ee65b6.tar.bz2 |
call drawdevices only every 500ms, added profiling code
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); |