File indexing completed on 2024-04-14 04:46:41
0001 /* 0002 SPDX-FileCopyrightText: 2012 Simon A. Eugster <simon.eu@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "qtimerWithTime.h" 0008 0009 void QTimerWithTime::start(int msec) 0010 { 0011 QTimer::start(msec); 0012 m_time.start(); 0013 } 0014 0015 qint64 QTimerWithTime::elapsed() const 0016 { 0017 return m_time.elapsed(); 0018 } 0019 0020 bool QTimerWithTime::isValid() const 0021 { 0022 return m_time.isValid(); 0023 }