mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:42:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			186 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			186 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <time.h>
 | |
| 
 | |
| class GElapsedTimer {
 | |
| public:
 | |
|     GElapsedTimer() { }
 | |
| 
 | |
|     void start();
 | |
|     int elapsed() const;
 | |
| 
 | |
| private:
 | |
|     struct timeval m_start_time { 0, 0 };
 | |
| };
 | 
