brintos

brintos / llvm-project-archived public Read only

0
0
Text · 795 B · 882238a Raw
26 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef CLOCK_H10#define CLOCK_H11 12#include <chrono>13 14class Clock15{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_H26