First Commit
This commit is contained in:
commit
8a6c7106e3
1312 files changed
+425396
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#include "catch.hpp"
|
||||
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#define OSMIUM_WITH_TIMER
|
||||
#include <osmium/util/timer.hpp>
|
||||
|
||||
TEST_CASE("timer") {
|
||||
osmium::Timer timer;
|
||||
timer.start();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
timer.stop();
|
||||
REQUIRE(timer.elapsed_microseconds() > 900);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user