How to calculate compile-time in C++
Hi buddies,
Would you please help me out.
I know this way:
int start_time, end_time
start_time=time(0);
…(main program is here)
end_time=time(0);
int cputime;
cputime=end_time - start_time;
But with this method, I can only get the comile-time in seconds. As a result, most of the trials, I got the cputime = 0 second. And, what I'd like to do is to calculate the compile-time in millisecond (or something smaller than second).
Thanks in advance for your precious help