Create Clock.hpp
This commit is contained in:
		
							
								
								
									
										23
									
								
								internal/Clock.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								internal/Clock.hpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | |||||||
|  | #include <Time.hpp> | ||||||
|  |  | ||||||
|  |  | ||||||
|  | namespace rnd7 { | ||||||
|  |     class Clock { | ||||||
|  |     public: | ||||||
|  |         Clock() {}; | ||||||
|  |  | ||||||
|  |         virtual ~Clock() {}; | ||||||
|  |  | ||||||
|  |          | ||||||
|  |         virtual Time getCurrentTime() const { return Time{}; }; | ||||||
|  |  | ||||||
|  |         Time getElapsedTime() const; | ||||||
|  |  | ||||||
|  |         Time restart(); | ||||||
|  |  | ||||||
|  |     protected: | ||||||
|  |  | ||||||
|  |         Time m_startTime; ///< Time of last reset, in microseconds | ||||||
|  |     }; | ||||||
|  |  | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub