Switch to always using a steady clock (closes #2200)

This commit is contained in:
Ryan Gonzalez
2017-01-28 17:00:49 -06:00
committed by Ivan
parent 4203f53b67
commit 11e2965b5c
7 changed files with 43 additions and 38 deletions
+5
View File
@@ -11,6 +11,7 @@
#include <cstdint>
#include <type_traits>
#include <utility>
#include <chrono>
// Assume little-endian
#define IS_LE_MACHINE 1
@@ -80,6 +81,10 @@ using s16 = std::int16_t;
using s32 = std::int32_t;
using s64 = std::int64_t;
using steady_clock = std::conditional<
std::chrono::high_resolution_clock::is_steady,
std::chrono::high_resolution_clock, std::chrono::steady_clock>::type;
namespace gsl
{
enum class byte : u8;