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.
24 lines
423 B
24 lines
423 B
/* TimerPosix.h |
|
* |
|
* Uses the POSIX nanosleep function to maintain timing. |
|
*/ |
|
|
|
#pragma once |
|
|
|
#include <ctime> |
|
|
|
#include "Timer.h" |
|
|
|
namespace PlipSdl { |
|
class TimerPosix : public Timer { |
|
public: |
|
TimerPosix() = default; |
|
|
|
void Nanosleep(long ns) override; |
|
void StopwatchStart() override; |
|
long StopwatchStop() override; |
|
|
|
private: |
|
struct timespec m_stopwatchVal {}; |
|
}; |
|
}
|
|
|