[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / utils / testutils / Timer.h
blob9df13a0d4074603b717773992397c0065cb0547c
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 __llvm_libc {
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 __llvm_libc
33 #endif // LLVM_LIBC_UTILS_TESTUTILS_TIMER_H