mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
call drawdevices only every 500ms, added profiling code
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user