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!
Asked
Active
Viewed 1,380 times
0

Prasanna Choudhari
- 189
- 1
- 1
- 13
-
8Complexity isn't measured in milliseconds. – Puppy Sep 30 '12 at 10:02
-
1you could use `getWindowsTick()` @DeadMG I agree, but what he wants is clear, although he used the wrong words. also , when we just started learning our teacher used MS to compare different students algorithms. – elyashiv Sep 30 '12 at 10:03
1 Answers
2
If you want to measure execution time you can:
Use boost timer
Retrieve system time before and after execution and compare

nogard
- 9,432
- 6
- 33
- 53
-
-
@nogard: you might want to edit your link - it's pointing to a page that says the interface is deprecated. – Klaas van Gend Oct 01 '12 at 07:24
-
@PrasannaChoudhari: that's not what I wrote. The page exists, but the text on the page tells you not to use that interface anymore. And provides a link to the real interface. – Klaas van Gend Oct 15 '12 at 07:53