Download build/_deps/catch2-src/projects/SelfTest/TimingTests/Sleep.tests.cpp from camenduru/thrust: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/projects/SelfTest/TimingTests/Sleep.tests.cpp
- Command line
-
hf download hf://camenduru/thrust/build/_deps/catch2-src/projects/SelfTest/TimingTests/Sleep.tests.cpp
-
curl -L -o Sleep.tests.cpp https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/projects/SelfTest/TimingTests/Sleep.tests.cpp
594 Bytes
| /* | |
| * Copyright 2011 Two Blue Cubes Ltd. All rights reserved. | |
| * | |
| * Distributed under the Boost Software License, Version 1.0. (See accompanying | |
| * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
| */ | |
| TEST_CASE( "sleep_for_100ms", "[.min_duration_test][approvals]" ) | |
| { | |
| std::this_thread::sleep_for( std::chrono::milliseconds( 100 ) ); | |
| CHECK( true ); | |
| } | |
| TEST_CASE( "sleep_for_250ms", "[.min_duration_test][approvals]" ) | |
| { | |
| std::this_thread::sleep_for( std::chrono::milliseconds( 250 ) ); | |
| CHECK( true ); | |
| } | |