1 //===-- Unittests for clock -----------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "src/time/clock.h"
10 #include "test/UnitTest/Test.h"
15 TEST(LlvmLibcClockTest
, SmokeTest
) {
16 clock_t c1
= LIBC_NAMESPACE::clock();
17 ASSERT_GT(c1
, clock_t(0));
19 clock_t c2
= LIBC_NAMESPACE::clock();