From c3aeb1e0ffaf30f33a12cca24c6ec936275219d6 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 29 Apr 2021 02:12:41 +0200 Subject: [PATCH] Tests: add framework/utils.cc - sleep_millis(); --- test/framework/utils.cc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/framework/utils.cc diff --git a/test/framework/utils.cc b/test/framework/utils.cc new file mode 100644 index 0000000..b7f1622 --- /dev/null +++ b/test/framework/utils.cc @@ -0,0 +1,7 @@ +#include "utils.hh" + + +void sleep_millis(int milis) { + std::chrono::milliseconds timespan(milis); + std::this_thread::sleep_for(timespan); +}