Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ pointer question Pin
David Crow17-Mar-04 3:03
David Crow17-Mar-04 3:03 
GeneralRe: C++ pointer question Pin
Christian Graus16-Mar-04 11:31
protectorChristian Graus16-Mar-04 11:31 
GeneralRe: C++ pointer question Pin
patnsnaudy16-Mar-04 12:55
patnsnaudy16-Mar-04 12:55 
GeneralRe: C++ pointer question Pin
Prakash Nadar16-Mar-04 14:55
Prakash Nadar16-Mar-04 14:55 
GeneralRe: C++ pointer question Pin
patnsnaudy17-Mar-04 3:56
patnsnaudy17-Mar-04 3:56 
GeneralRe: C++ pointer question Pin
Prakash Nadar17-Mar-04 16:45
Prakash Nadar17-Mar-04 16:45 
GeneralRe: C++ pointer question Pin
Ryan Binns16-Mar-04 17:10
Ryan Binns16-Mar-04 17:10 
GeneralI gave in (sln) Pin
patnsnaudy18-Mar-04 2:12
patnsnaudy18-Mar-04 2:12 
QuestionHow to TURN UNICODE ON. Pin
HAHAHA_NEXT16-Mar-04 10:19
HAHAHA_NEXT16-Mar-04 10:19 
AnswerRe: How to TURN UNICODE ON. Pin
David Crow16-Mar-04 10:34
David Crow16-Mar-04 10:34 
GeneralRe: How to TURN UNICODE ON. Pin
HAHAHA_NEXT16-Mar-04 10:39
HAHAHA_NEXT16-Mar-04 10:39 
GeneralRe: How to TURN UNICODE ON. Pin
David Crow16-Mar-04 10:46
David Crow16-Mar-04 10:46 
GeneralRe: How to TURN UNICODE ON. Pin
HAHAHA_NEXT16-Mar-04 10:52
HAHAHA_NEXT16-Mar-04 10:52 
GeneralRe: How to TURN UNICODE ON. Pin
Gary R. Wheeler16-Mar-04 13:40
Gary R. Wheeler16-Mar-04 13:40 
GeneralRe: How to TURN UNICODE ON. Pin
Michael Dunn16-Mar-04 13:20
sitebuilderMichael Dunn16-Mar-04 13:20 
AnswerRe: How to TURN UNICODE ON. Pin
Sivaji16-Mar-04 19:02
Sivaji16-Mar-04 19:02 
Generalifstream eof() Pin
ns16-Mar-04 8:00
ns16-Mar-04 8:00 
GeneralRe: ifstream eof() Pin
Gary R. Wheeler16-Mar-04 14:10
Gary R. Wheeler16-Mar-04 14:10 
GeneralRe: ifstream eof() Pin
ns18-Mar-04 1:02
ns18-Mar-04 1:02 
Generalfunction timing Pin
josh052616-Mar-04 7:55
josh052616-Mar-04 7:55 
I am trying to determine the amount of time that some functions in my program are taking to execute. I am currently using the clock() function at points before and after the function call being timed, and then dividing the time difference by CLOCKS_PER_SEC. I only seem to be getting three decimal places of precision in the resulting number of seconds. Is this the best way to accomplish something like this? I have included a generic sample below:

Sample:

#include <ctime>

time_t t1,t2;
double time;

t1 = clock();
function();
t2 = clock();
time = difftime(t2,t1) / CLOCKS_PER_SEC;

Thanks,
josh0526
GeneralRe: function timing Pin
Maximilien16-Mar-04 8:00
Maximilien16-Mar-04 8:00 
GeneralRe: function timing Pin
David Crow16-Mar-04 8:53
David Crow16-Mar-04 8:53 
GeneralGHAAAAAAARGH!!! STATUS_ACCESS VIOLATION Pin
mmica16-Mar-04 6:27
mmica16-Mar-04 6:27 
GeneralRe: GHAAAAAAARGH!!! STATUS_ACCESS VIOLATION Pin
Daniel Turini16-Mar-04 7:48
Daniel Turini16-Mar-04 7:48 
Questionwho know how to make a menu bar in Win32 console application?? Pin
Jeff TTT16-Mar-04 5:56
Jeff TTT16-Mar-04 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.