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!

Search results for query: *

  1. SandMacD

    Waiting X number of minutes

    The suspend() function posted in the "waiting for x milliseconds" could be easily adapted to use seconds as a parameter. I found it nescessary to use that function in my application when one similar to the one you suggest pushed my processor usage to 100%.
  2. SandMacD

    how do I wait x number of milliseconds??

    try this function: int suspend(int milisecs) { HANDLE hTimer = NULL; LARGE_INTEGER liDueTime; liDueTime.QuadPart=(-10000 * milisecs); // Create a waitable timer. hTimer = CreateWaitableTimer(NULL, TRUE, NULL); if (!hTimer) { CloseHandle(hTimer); return...

Part and Inventory Search

Back
Top