diff options
Diffstat (limited to 'include/lld/Common/Timer.h')
-rw-r--r-- | include/lld/Common/Timer.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/include/lld/Common/Timer.h b/include/lld/Common/Timer.h index 6654af626919..4a298b04a30b 100644 --- a/include/lld/Common/Timer.h +++ b/include/lld/Common/Timer.h @@ -1,9 +1,8 @@ //===- Timer.h ----------------------------------------------*- C++ -*-===// // -// The LLVM Linker -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -22,18 +21,18 @@ namespace lld { class Timer; struct ScopedTimer { - explicit ScopedTimer(Timer &T); + explicit ScopedTimer(Timer &t); ~ScopedTimer(); void stop(); - Timer *T = nullptr; + Timer *t = nullptr; }; class Timer { public: - Timer(llvm::StringRef Name, Timer &Parent); + Timer(llvm::StringRef name, Timer &parent); static Timer &root(); @@ -44,14 +43,14 @@ public: double millis() const; private: - explicit Timer(llvm::StringRef Name); - void print(int Depth, double TotalDuration, bool Recurse = true) const; - - std::chrono::time_point<std::chrono::high_resolution_clock> StartTime; - std::chrono::nanoseconds Total; - std::vector<Timer *> Children; - std::string Name; - Timer *Parent; + explicit Timer(llvm::StringRef name); + void print(int depth, double totalDuration, bool recurse = true) const; + + std::chrono::time_point<std::chrono::high_resolution_clock> startTime; + std::chrono::nanoseconds total; + std::vector<Timer *> children; + std::string name; + Timer *parent; }; } // namespace lld |