git-subtree-dir: third_party/libosmium git-subtree-split: ce865381fb752323ff1e66181f5a49b7f500ffa3
17 lines
317 B
C++
17 lines
317 B
C++
#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);
|
|
}
|
|
|