Displaying 1 result from an estimated 1 matches for "tick_duration".
2017 May 19
2
noinline changes between 3.8 and 4.0?
...ning into the following issue:
// compile with:
// clang++ -std=c++11 -Wno-c++14-extensions -S -emit-llvm
// ~/chrono.cpp -o chrono.ll
#include <chrono>
#include <ratio>
#include <thread>
using namespace std;
using namespace std::chrono;
using tick = ratio<1, 300>;
using tick_duration = duration<long, tick>;
class ticking_clock {
public:
using duration = tick_duration;
using rep = duration::rep;
using period = duration::period;
using time_point = time_point<ticking_clock, duration>;
static constexpr bool is_steady = true;
static time_point now() noexcep...