1 //===--- Duration.h - wrapper around std::chrono::Duration ------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // The sole purpose of this file is to avoid the dependency on <chrono> in
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_SUPPORT_DURATION_H
15 #define LLVM_SUPPORT_DURATION_H
21 std::chrono::milliseconds Value;
23 Duration(std::chrono::milliseconds Value) : Value(Value) {}
24 std::chrono::milliseconds getDuration() const { return Value; }