Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting time

Status
Not open for further replies.

Chemakill

Programmer
Aug 17, 2000
37
CA
Can someone give me the syntax/a code example of a timer function, where I could start and end a timer to determine the length of time a given operation took? Thx.
 
you need set a timer:
SetTimer(hWnd,TimerID,EachMilliseconds,0);
handle WM_TIMER where wParam = TimerID in WndProc or
SetTimer(hWnd,TimerID,EachMilliseconds,lpfnTimerProc);
handle timer in timer proc. At the end
KillTimer(hEnd,TimerID);
John Fill
1c.bmp


ivfmd@mail.md
 
If you're just wanting to time an operation, use timeGetTime() or GetTickCount().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top