Click here to Skip to main content
15,887,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: who know how to make a menu bar in Win32 console application?? Pin
JWood16-Mar-04 6:09
JWood16-Mar-04 6:09 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
Jeff TTT16-Mar-04 6:14
Jeff TTT16-Mar-04 6:14 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
JWood16-Mar-04 7:26
JWood16-Mar-04 7:26 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
Jeff TTT16-Mar-04 7:38
Jeff TTT16-Mar-04 7:38 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
Maximilien16-Mar-04 7:47
Maximilien16-Mar-04 7:47 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
JWood16-Mar-04 8:45
JWood16-Mar-04 8:45 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
JWood16-Mar-04 8:44
JWood16-Mar-04 8:44 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
Jeff TTT16-Mar-04 8:52
Jeff TTT16-Mar-04 8:52 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
JWood16-Mar-04 9:03
JWood16-Mar-04 9:03 
AnswerRe: who know how to make a menu bar in Win32 console application?? Pin
Maximilien16-Mar-04 7:51
Maximilien16-Mar-04 7:51 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
looloo8316-Mar-04 8:07
susslooloo8316-Mar-04 8:07 
GeneralRe: who know how to make a menu bar in Win32 console application?? Pin
David Crow16-Mar-04 8:51
David Crow16-Mar-04 8:51 

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.