Debian Codegraph @

libcxx/test/std/time/clock.h

raw
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
9 #ifndef CLOCK_H
10 #define CLOCK_H
11
12 #include <chrono>
13
14 class Clock
15 {
16 typedef std::chrono::nanoseconds duration;
17 typedef duration::rep rep;
18 typedef duration::period period;
19 typedef std::chrono::time_point<Clock, duration> time_point;
20 static const bool is_steady = false;
21
22 static time_point now();
23 };
24
25 #endif // CLOCK_H