Click here to Skip to main content
15,913,333 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Where Do I Add the Filters used for File->Open? Pin
James A Beggs16-Jun-03 4:15
James A Beggs16-Jun-03 4:15 
GeneralRe: Where Do I Add the Filters used for File->Open? Pin
David Crow16-Jun-03 4:34
David Crow16-Jun-03 4:34 
GeneralProgrammatically installing a modem using Win32 API Pin
Ajith Kumar16-Jun-03 2:46
Ajith Kumar16-Jun-03 2:46 
GeneralMeasuring time of execution Pin
affzan16-Jun-03 2:04
affzan16-Jun-03 2:04 
GeneralRe: Measuring time of execution Pin
alex.barylski16-Jun-03 2:23
alex.barylski16-Jun-03 2:23 
GeneralRe: Measuring time of execution Pin
peterchen16-Jun-03 2:26
peterchen16-Jun-03 2:26 
GeneralRe: Measuring time of execution Pin
Tarundeep Singh Kalra16-Jun-03 3:09
Tarundeep Singh Kalra16-Jun-03 3:09 
GeneralRe: Measuring time of execution Pin
Hosam Aly Mahmoud16-Jun-03 5:48
Hosam Aly Mahmoud16-Jun-03 5:48 
Using time(time_t *) is easy. time_t is declared as typedef long time_t. The function time(...) returns the time elapsed in seconds from the start of the system's calender. On my system, it returns how many seconds elapsed since 00:00:00 1/1/1980. To use this function to calculate time difference, you may look at double difftime ( time_t timer1, time_t timer0 ). I believe that using clock_t clock() would give much more accurate results. For example, write:
// Start of function
clock_t start, finish;
start = clock()
// Do your work here
finish = clock()
cout << "The function took " <<
     double(finish - start) / CLOCKS_PER_SECOND <<
     " seconds.\n";
// End of function


<marquee>

Hosam Aly Mahmoud


Generalthe way to access FileSystemObject Pin
Krisna Adityawan16-Jun-03 1:54
Krisna Adityawan16-Jun-03 1:54 
GeneralGetting user information Pin
abhinarulkar16-Jun-03 1:49
abhinarulkar16-Jun-03 1:49 
GeneralRe: Getting user information Pin
David Crow16-Jun-03 3:16
David Crow16-Jun-03 3:16 
GeneraltAB CONTROL Pin
vcseeker16-Jun-03 1:36
vcseeker16-Jun-03 1:36 
GeneralRe: tAB CONTROL Pin
David Crow16-Jun-03 3:47
David Crow16-Jun-03 3:47 
GeneralRe: tAB CONTROL Pin
vcseeker16-Jun-03 18:00
vcseeker16-Jun-03 18:00 
GeneralRe: tAB CONTROL Pin
vcseeker17-Jun-03 0:45
vcseeker17-Jun-03 0:45 
GeneralRe: tAB CONTROL Pin
Joan M16-Jun-03 5:16
professionalJoan M16-Jun-03 5:16 
GeneralRe: tAB CONTROL Pin
vcseeker16-Jun-03 17:59
vcseeker16-Jun-03 17:59 
GeneralRe: tAB CONTROL Pin
vcseeker17-Jun-03 0:45
vcseeker17-Jun-03 0:45 
GeneralRe: tAB CONTROL Pin
Joan M17-Jun-03 0:55
professionalJoan M17-Jun-03 0:55 
GeneralRe: tAB CONTROL Pin
vcseeker17-Jun-03 2:27
vcseeker17-Jun-03 2:27 
GeneralRe: tAB CONTROL Pin
Joan M17-Jun-03 21:40
professionalJoan M17-Jun-03 21:40 
GeneralRe: tAB CONTROL Pin
vcseeker18-Jun-03 1:41
vcseeker18-Jun-03 1:41 
GeneralProblem with displaying images Pin
Franz Klein16-Jun-03 1:10
Franz Klein16-Jun-03 1:10 
GeneralLint-like .h-file tool Pin
Gisle Vanem16-Jun-03 0:12
Gisle Vanem16-Jun-03 0:12 
GeneralRe: Lint-like .h-file tool Pin
Franz Klein16-Jun-03 0:41
Franz Klein16-Jun-03 0:41 

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.