2010-05-11 21:42:16 +02:00
|
|
|
#ifndef CLOCK_H
|
|
|
|
#define CLOCK_H
|
|
|
|
|
|
|
|
#include <chrono>
|
|
|
|
|
|
|
|
class Clock
|
|
|
|
{
|
|
|
|
typedef std::chrono::nanoseconds duration;
|
|
|
|
typedef duration::rep rep;
|
|
|
|
typedef duration::period period;
|
|
|
|
typedef std::chrono::time_point<Clock, duration> time_point;
|
2010-11-20 20:16:30 +01:00
|
|
|
static const bool is_steady = false;
|
2010-05-11 21:42:16 +02:00
|
|
|
|
|
|
|
static time_point now();
|
|
|
|
};
|
|
|
|
|
2010-08-22 02:59:46 +02:00
|
|
|
#endif // CLOCK_H
|