Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / test / src / math / differential_testing / Timer.h
blobd4acff7ba0eb1835bd45061cdeb9bedc9583ad7a
1 //===-- Timer.h -------------------------------------------------*- 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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIBC_UTILS_TESTUTILS_TIMER_H
10 #define LLVM_LIBC_UTILS_TESTUTILS_TIMER_H
12 #include <stdint.h>
14 namespace LIBC_NAMESPACE {
15 namespace testing {
17 class Timer {
18 void *Impl;
20 public:
21 Timer();
22 ~Timer();
24 void start();
25 void stop();
27 uint64_t nanoseconds() const;
30 } // namespace testing
31 } // namespace LIBC_NAMESPACE
33 #endif // LLVM_LIBC_UTILS_TESTUTILS_TIMER_H