From d7d3c05a70de2dfacce6940ec6c0fe7c05025ac1 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Tue, 17 Jul 2018 13:35:59 +0200
Subject: [PATCH] eval: Use correct time unit

It's 'ns' stupid.
---
 eval/SpawnALot.cpp   | 8 ++++----
 eval/TimeToSpawn.cpp | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/eval/SpawnALot.cpp b/eval/SpawnALot.cpp
index 1bbe8743..acf4645e 100644
--- a/eval/SpawnALot.cpp
+++ b/eval/SpawnALot.cpp
@@ -129,7 +129,7 @@ int main(UNUSED_ARG int argc, UNUSED_ARG char *argv[]) {
 	std::cout << "Spawn a lot of threads recursive (depth="
 			  << depth << ", width="
 			  << width << ") took "
-			  << diff.count() << "us"
+			  << diff.count() << " ns"
 			  << std::endl;
 
 	start = std::chrono::high_resolution_clock::now();
@@ -138,7 +138,7 @@ int main(UNUSED_ARG int argc, UNUSED_ARG char *argv[]) {
 	diff = std::chrono::duration_cast<std::chrono::nanoseconds>(end -start);
 	std::cout << "Spawn a lot of threads non-recursive (count="
 			  << count << ") took "
-			  << diff.count() << "us"
+			  << diff.count() << " ns"
 			  << std::endl;
 
 	Runtime runtime;
@@ -151,7 +151,7 @@ int main(UNUSED_ARG int argc, UNUSED_ARG char *argv[]) {
 			std::cout << "Spawn a lot of fibers recursive (depth="
 					  << depth << ", width="
 					  << width << ") took "
-					  << diff.count() << "us"
+					  << diff.count() << " ns"
 					  << std::endl;
 
 			start = std::chrono::high_resolution_clock::now();
@@ -160,7 +160,7 @@ int main(UNUSED_ARG int argc, UNUSED_ARG char *argv[]) {
 			diff = std::chrono::duration_cast<std::chrono::nanoseconds>(end -start);
 			std::cout << "Spawn a lot of fibers non-recursive (count="
 					  << count << ") took "
-					  << diff.count() << "us"
+					  << diff.count() << " ns"
 					  << std::endl;
 		});
 
diff --git a/eval/TimeToSpawn.cpp b/eval/TimeToSpawn.cpp
index 9d1046fa..5e6bb532 100644
--- a/eval/TimeToSpawn.cpp
+++ b/eval/TimeToSpawn.cpp
@@ -51,14 +51,14 @@ int main(UNUSED_ARG int argc, UNUSED_ARG char *argv[]) {
 	{
 		auto ttts = threadTimeToSpawn();
 		std::cout << "Thread time to spawn: "
-				  << ttts.count() << "us"
+				  << ttts.count() << " ns"
 				  << std::endl;
 	}
 
 	{
 		auto ftts = fiberTimeToSpawn();
 		std::cout << "Fiber time to spawn: "
-				  << ftts.count() << "us"
+				  << ftts.count() << " ns"
 				  << std::endl;
 	}
 }
-- 
GitLab