clock.h 796 B

12345678910111213141516171819202122232425
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef CLOCK_H
  9. #define CLOCK_H
  10. #include <chrono>
  11. class Clock
  12. {
  13. typedef std::chrono::nanoseconds duration;
  14. typedef duration::rep rep;
  15. typedef duration::period period;
  16. typedef std::chrono::time_point<Clock, duration> time_point;
  17. static const bool is_steady = false;
  18. static time_point now();
  19. };
  20. #endif // CLOCK_H