File indexing completed on 2025-01-05 03:59:17
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2011, 2012 Bernhard Beschow <bbeschow@cs.tu-berlin.de> 0004 // 0005 0006 #ifndef MARBLE_FPSLAYER_H 0007 #define MARBLE_FPSLAYER_H 0008 0009 class QPainter; 0010 class QElapsedTimer; 0011 0012 namespace Marble 0013 { 0014 0015 class FpsLayer 0016 { 0017 public: 0018 explicit FpsLayer( QElapsedTimer *time ); 0019 0020 void paint( QPainter *painter ) const; 0021 0022 private: 0023 QElapsedTimer *const m_time; 0024 }; 0025 0026 } 0027 0028 #endif