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 104684ddb6SLionel Sambuc #ifndef CLOCK_H 114684ddb6SLionel Sambuc #define CLOCK_H 124684ddb6SLionel Sambuc 134684ddb6SLionel Sambuc #include <chrono> 144684ddb6SLionel Sambuc 154684ddb6SLionel Sambuc class Clock 164684ddb6SLionel Sambuc { 174684ddb6SLionel Sambuc typedef std::chrono::nanoseconds duration; 184684ddb6SLionel Sambuc typedef duration::rep rep; 194684ddb6SLionel Sambuc typedef duration::period period; 204684ddb6SLionel Sambuc typedef std::chrono::time_point<Clock, duration> time_point; 214684ddb6SLionel Sambuc static const bool is_steady = false; 224684ddb6SLionel Sambuc 234684ddb6SLionel Sambuc static time_point now(); 244684ddb6SLionel Sambuc }; 254684ddb6SLionel Sambuc 264684ddb6SLionel Sambuc #endif // CLOCK_H 27