Is there a way to calculate a program's time complexity in milliseconds?
-
11-12-2019 - |
Question
Well, I wanted to compare the time efficiency of 2 programs, which are designed to do the same thing. I want some function/script/method, so that after the execution of a program, it gives me the time required to do that process. like - "The program took 0.3ms to complete"
.
I had searched for threads with similar topic,but i was not satisfied with what i read. So any light on this topic is appreciated!
Solution
If you want to measure execution time you can:
Use boost timer
Retrieve system time before and after execution and compare
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow