//===- unittests/TimerTest.cpp - Timer tests ------------------------------===// // // 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 // //===----------------------------------------------------------------------===// #include "llvm/Support/Timer.h" #include "gtest/gtest.h" #if _WIN32 #include <windows.h> #else #include <time.h> #endif usingnamespacellvm; namespace { // FIXME: Put this somewhere in Support, it's also used in LockFileManager. void SleepMS() { … } TEST(Timer, Additivity) { … } TEST(Timer, CheckIfTriggered) { … } } // end anon namespace