|
-
December 23rd, 2002, 09:03 AM
#1
Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|