diff options
-rw-r--r-- | tools/Benchmark.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/Benchmark.cpp b/tools/Benchmark.cpp index 20760062d8..dedd46e8bf 100644 --- a/tools/Benchmark.cpp +++ b/tools/Benchmark.cpp @@ -57,6 +57,8 @@ public: std::cout << "took: " << std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count() << "ms - "; + assert(deltas && "div by zero otherwise"); + std::cout << "time/rle: " << (1.0*std::chrono::duration_cast<std::chrono::microseconds>(end - start).count())/deltas << "us\n"; } |