#ifndef RUY_RUY_TIME_H_
#define RUY_RUY_TIME_H_
#include <chrono>
#include <cstdint>
#include <ratio>
#ifdef __linux__
#include <sys/time.h>
#include <ctime>
#endif
namespace ruy {
InternalDefaultClock;
TimePoint;
Duration;
template <typename RepresentationType>
Duration DurationFromSeconds(RepresentationType representation) { … }
template <typename RepresentationType>
Duration DurationFromMilliseconds(RepresentationType representation) { … }
template <typename RepresentationType>
Duration DurationFromNanoseconds(RepresentationType representation) { … }
inline float ToFloatSeconds(const Duration& duration) { … }
inline float ToFloatMilliseconds(const Duration& duration) { … }
inline std::int64_t ToInt64Nanoseconds(const Duration& duration) { … }
inline TimePoint Now() { … }
inline TimePoint CoarseNow() { … }
}
#endif