summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/benchmark/src/sleep.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/benchmark/src/sleep.h')
-rw-r--r--3rdparty/benchmark/src/sleep.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/3rdparty/benchmark/src/sleep.h b/3rdparty/benchmark/src/sleep.h
new file mode 100644
index 00000000000..f1e515ca4f3
--- /dev/null
+++ b/3rdparty/benchmark/src/sleep.h
@@ -0,0 +1,17 @@
+#ifndef BENCHMARK_SLEEP_H_
+#define BENCHMARK_SLEEP_H_
+
+#include <cstdint>
+
+namespace benchmark {
+const int64_t kNumMillisPerSecond = 1000LL;
+const int64_t kNumMicrosPerMilli = 1000LL;
+const int64_t kNumMicrosPerSecond = kNumMillisPerSecond * 1000LL;
+const int64_t kNumNanosPerMicro = 1000LL;
+const int64_t kNumNanosPerSecond = kNumNanosPerMicro * kNumMicrosPerSecond;
+
+void SleepForMilliseconds(int milliseconds);
+void SleepForSeconds(double seconds);
+} // end namespace benchmark
+
+#endif // BENCHMARK_SLEEP_H_