You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
343 B
18 lines
343 B
/* Timer.h |
|
* |
|
* Implements an interface for a high precision timer and stopwatch. |
|
*/ |
|
|
|
#pragma once |
|
|
|
namespace PlipSdl { |
|
class Timer { |
|
public: |
|
virtual void Nanosleep(long ns) = 0; |
|
virtual void StopwatchStart() = 0; |
|
virtual unsigned long StopwatchStop() = 0; |
|
|
|
protected: |
|
Timer() = default; |
|
}; |
|
}
|
|
|