North-Seattle-College / ad440-winter2021-thursday-repo

NSC AD 440 Winter 2021 Thursday cohort practicum repo
Apache License 2.0
2 stars 27 forks source link

Added function to count how long it takes to load a page 40 times #323

Closed chonger878 closed 3 years ago

chonger878 commented 3 years ago

Closes #293

What this PR does: This function will not only count how long it will take for a page at the endpoint user/{user_id}/tasks/{task_id} to load, but it will load a page 40 times, counting up the seconds as it goes. The console will print the average load time. Caching code is forthcoming

How to test the code (I used cmd on this one): 1.) Navigate to test/ui 2.) Before starting, make sure you type npm install to load dependencies/whatever is needed. 3.) Type node capturetimetaskid.js 4.) You should be able to see 40 lines of output stating how long it takes to load the page at every iteration. When the program stops running, you should be able to see the average time it took to load the page 40 times.