File indexing completed on 2024-05-12 15:56:58
0001 /* 0002 * SPDX-FileCopyrightText: 2017 Bernhard Liebl <poke1024@gmx.de> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "kis_latency_tracker.h" 0008 0009 KisLatencyTracker::KisLatencyTracker(int windowSize) : 0010 KisScalarTracker<qint64>("event latency", windowSize) 0011 { 0012 } 0013 0014 void KisLatencyTracker::push(qint64 timestamp) 0015 { 0016 const qint64 latency = currentTimestamp() - timestamp; 0017 KisScalarTracker<qint64>::push(latency); 0018 }