How to get my timer correct? Using chrono | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to get my timer correct? Using chrono

I create a vector and an array to compare their time. When I separated them to compile it works fine. But when I combined two things in one file. Those time become junk number. How could I fix it? https://code.sololearn.com/cVI4m6Meulou/?ref=app

27th Nov 2018, 11:35 PM
Jimmy Chen
Jimmy Chen  - avatar
1 Answer
+ 1
advice: use clock_t instead of chrono, much easier.
9th Dec 2018, 10:03 PM
LiquidX
LiquidX - avatar