1*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 2*0a6a1f1dSLionel Sambuc // 3*0a6a1f1dSLionel Sambuc // The LLVM Compiler Infrastructure 4*0a6a1f1dSLionel Sambuc // 5*0a6a1f1dSLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open 6*0a6a1f1dSLionel Sambuc // Source Licenses. See LICENSE.TXT for details. 7*0a6a1f1dSLionel Sambuc // 8*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc #ifndef CLOCK_H 11*0a6a1f1dSLionel Sambuc #define CLOCK_H 12*0a6a1f1dSLionel Sambuc 13*0a6a1f1dSLionel Sambuc #include <chrono> 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel Sambuc class Clock 16*0a6a1f1dSLionel Sambuc { 17*0a6a1f1dSLionel Sambuc typedef std::chrono::nanoseconds duration; 18*0a6a1f1dSLionel Sambuc typedef duration::rep rep; 19*0a6a1f1dSLionel Sambuc typedef duration::period period; 20*0a6a1f1dSLionel Sambuc typedef std::chrono::time_point<Clock, duration> time_point; 21*0a6a1f1dSLionel Sambuc static const bool is_steady = false; 22*0a6a1f1dSLionel Sambuc 23*0a6a1f1dSLionel Sambuc static time_point now(); 24*0a6a1f1dSLionel Sambuc }; 25*0a6a1f1dSLionel Sambuc 26*0a6a1f1dSLionel Sambuc #endif // CLOCK_H 27