From 01ab68b56d5b2dca1afaa8a7229d4071f2b0f900 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 6 Feb 2024 19:06:25 -0500 Subject: [PATCH] make the time command in a separate message --- labs/05_vectors/README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/labs/05_vectors/README.md b/labs/05_vectors/README.md index 1da6fc2..ed173b7 100644 --- a/labs/05_vectors/README.md +++ b/labs/05_vectors/README.md @@ -147,10 +147,19 @@ void bar5 (std::vector &a) { When you finish, discuss these problems with your teammate. If your teammate hasn’t finished, please help them (but without just doing the problems for them). -Once you are both finished, type these examples into your C++ editor, add print statements, and confirm -your answers are correct. What print statements will be most helpful? In your terminal, instead of running -just ./a.out try running time ./a.out and reading the real time, which is how long your program took to -run. How does this change as you increase or decrease each of the data size variables you identified above? +Once you are both finished, type these examples into your C++ editor, add print statements, and confirm your answers are correct. What print statements will be most helpful? In your terminal, instead of running just + +```console +./a.out +``` + +try running + +```console +time ./a.out +``` + +and reading the real time, which is how long your program took to run. How does this change as you increase or decrease each of the data size variables you identified above? **To complete this checkpoint**, as a team, present your work to a TA/mentor.