gdk-event-latency-tracker.cpp revision 35873afc9911efb8148e0ed4d18cd1782e2f5b54
/*
* Inkscape::Debug::GdkEventLatencyTracker - tracks backlog of GDK events
*
* Authors:
* MenTaLguY <mental@rydia.net>
*
* Copyright (C) 2008 MenTaLguY
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "debug/gdk-event-latency-tracker.h"
#include "prefs-utils.h"
namespace Inkscape {
namespace Debug {
{
}
if (timestamp == GDK_CURRENT_TIME) {
}
if (start_seconds == 0.0) {
} else {
if (delta < 0.0) {
start_seconds += -delta;
delta = 0.0;
} else if (delta > max_latency) {
max_latency = delta;
}
}
}
static GdkEventLatencyTracker tracker;
return tracker;
}
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :