Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Application freeze Pin
Michael Thärigen12-Sep-09 22:54
Michael Thärigen12-Sep-09 22:54 
Questiontimer start problem Pin
susanne129-Jun-09 0:25
susanne129-Jun-09 0:25 
AnswerRe: timer start problem Pin
«_Superman_»29-Jun-09 0:35
professional«_Superman_»29-Jun-09 0:35 
GeneralRe: timer start problem Pin
susanne129-Jun-09 0:57
susanne129-Jun-09 0:57 
AnswerRe: timer start problem Pin
Stuart Dootson29-Jun-09 0:39
professionalStuart Dootson29-Jun-09 0:39 
GeneralRe: timer start problem Pin
susanne129-Jun-09 1:15
susanne129-Jun-09 1:15 
GeneralRe: timer start problem Pin
Chandrasekharan P29-Jun-09 1:57
Chandrasekharan P29-Jun-09 1:57 
GeneralRe: timer start problem Pin
Stuart Dootson29-Jun-09 2:39
professionalStuart Dootson29-Jun-09 2:39 
What you want to do is something like this (using code from you original post):

void CMiniClass :: DoSomething()
{
LARGE_INTEGER startTime, endTime;
QueryPerformanceCounter(&startTime);
while (i > 0)
{
DoStuff();
}
QueryPerformanceCounter(&endTime);
LARGE_INTEGER elapsedTime;
elapsedTime.QuadPart = endTime.QuadPart - startTime.QuadPart;
LARGE_INTEGER timerFreq;
QueryPerformanceFrequency(&timerFreq);
const double elapsedTimeInSeconds = (double)elapsedTime.QuadPart / (double)timerFreq.QuadPart;
}


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionCreateFile related Pin
ashish8patil29-Jun-09 0:07
ashish8patil29-Jun-09 0:07 
AnswerRe: CreateFile related Pin
Cedric Moonen29-Jun-09 0:16
Cedric Moonen29-Jun-09 0:16 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:23
ashish8patil29-Jun-09 0:23 
AnswerRe: CreateFile related Pin
«_Superman_»29-Jun-09 0:18
professional«_Superman_»29-Jun-09 0:18 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:28
ashish8patil29-Jun-09 0:28 
GeneralRe: CreateFile related Pin
«_Superman_»29-Jun-09 0:31
professional«_Superman_»29-Jun-09 0:31 
GeneralRe: CreateFile related Pin
ashish8patil29-Jun-09 0:36
ashish8patil29-Jun-09 0:36 
AnswerRe: CreateFile related Pin
Luc Pattyn29-Jun-09 0:20
sitebuilderLuc Pattyn29-Jun-09 0:20 
AnswerRe: CreateFile related Pin
Stuart Dootson29-Jun-09 0:32
professionalStuart Dootson29-Jun-09 0:32 
QuestionCDockablePane Autohide issue Pin
Harsh Shankar28-Jun-09 23:39
Harsh Shankar28-Jun-09 23:39 
Questionlist and ip control in mfc Pin
rahuljin28-Jun-09 23:37
rahuljin28-Jun-09 23:37 
AnswerRe: list and ip control in mfc Pin
«_Superman_»28-Jun-09 23:48
professional«_Superman_»28-Jun-09 23:48 
GeneralRe: list and ip control in mfc Pin
rahuljin28-Jun-09 23:54
rahuljin28-Jun-09 23:54 
GeneralRe: list and ip control in mfc Pin
«_Superman_»28-Jun-09 23:57
professional«_Superman_»28-Jun-09 23:57 
QuestionSHFileOperation and Vista64 Pin
khb28-Jun-09 21:51
khb28-Jun-09 21:51 
AnswerRe: SHFileOperation and Vista64 Pin
«_Superman_»28-Jun-09 22:25
professional«_Superman_»28-Jun-09 22:25 
GeneralRe: SHFileOperation and Vista64 Pin
khb28-Jun-09 22:38
khb28-Jun-09 22:38 

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.