Remote Call Framework 3.3
Timer.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2022, Delta V Software. All rights reserved.
6 // https://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF under GPL terms.
12 //
13 // Version: 3.3
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
18 #ifndef INCLUDE_RCF_TIMER_HPP
19 #define INCLUDE_RCF_TIMER_HPP
20 
21 #include <RCF/Export.hpp>
22 
23 #include <cstdint>
24 
25 namespace RCF {
26 
27  class RCF_EXPORT Timer
28  {
29  public:
30 
31  Timer();
32  Timer(std::uint32_t startTimeMs);
33 
34  bool elapsed(std::uint32_t durationMs);
35  void restart();
36  void restart(std::uint32_t startTimeMs);
37  std::uint32_t getStartTimeMs();
38  std::uint32_t getDurationMs();
39 
40  private:
41  std::uint32_t mStartTimeMs;
42  };
43 
44 }
45 
46 #endif // ! INCLUDE_RCF_TIMER_HPP
Definition: AmiIoHandler.hpp:23