LLVM
17.0.0git
include
llvm
Support
Duration.h
Go to the documentation of this file.
1
//===--- Duration.h - wrapper around std::chrono::Duration ------*- C++ -*-===//
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
// The sole purpose of this file is to avoid the dependency on <chrono> in
10
// raw_ostream.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_SUPPORT_DURATION_H
15
#define LLVM_SUPPORT_DURATION_H
16
17
#include <chrono>
18
19
namespace
llvm
{
20
class
Duration
{
21
std::chrono::milliseconds
Value
;
22
public
:
23
Duration
(std::chrono::milliseconds
Value
) :
Value
(
Value
) {}
24
std::chrono::milliseconds
getDuration
()
const
{
return
Value
; }
25
};
26
}
27
28
#endif
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::Duration
Definition:
Duration.h:20
llvm::Duration::getDuration
std::chrono::milliseconds getDuration() const
Definition:
Duration.h:24
llvm::Duration::Duration
Duration(std::chrono::milliseconds Value)
Definition:
Duration.h:23
llvm::Value
LLVM Value Representation.
Definition:
Value.h:74
Generated on Sat Jan 28 2023 08:50:38 for LLVM by
1.8.17