Timer.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Core
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2014, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeCore/Base.h"
16 
17 namespace cee {
18 
19 //==================================================================================================
20 //
21 // Timer class
22 //
23 //==================================================================================================
24 class CEE_CORE_EXPORT Timer
25 {
26 public:
27  Timer();
28  ~Timer();
29 
30  double time() const;
31  double lapTime();
32 
33  void restart();
34 
35 private:
36  CEE_PRIVATE_IMPL(Timer);
37 };
38 
39 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Class for doing high precision timing. Actual resolution is platform dependent.
Definition: Timer.h:24