35 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_TEST_SRC_MATH_PERFORMACE_TESTING_TIMER_H10#define LLVM_LIBC_TEST_SRC_MATH_PERFORMACE_TESTING_TIMER_H11 12#include "hdr/stdint_proxy.h"13#include "src/__support/macros/config.h"14 15namespace LIBC_NAMESPACE_DECL {16namespace testing {17 18class Timer {19 void *Impl;20 21public:22 Timer();23 ~Timer();24 25 void start();26 void stop();27 28 uint64_t nanoseconds() const;29};30 31} // namespace testing32} // namespace LIBC_NAMESPACE_DECL33 34#endif // LLVM_LIBC_TEST_SRC_MATH_PERFORMANCE_TESTING_TIMER_H35