#ifndef SLEEPER_BWPGKQCV #define SLEEPER_BWPGKQCV #include "fib.h" #include #include class FibUSleeper : private FibSeq { public: FibUSleeper(int_type limit) : FibSeq(limit) {} void Sleep() { std::this_thread::sleep_for(std::chrono::microseconds(Inc())); } using FibSeq::Cur; using FibSeq::Limit; using FibSeq::Reset; using FibSeq::ResetLimit; protected: using FibSeq::Inc; }; #endif // end of include guard: SLEEPER_BWPGKQCV