CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    1

    Make a time delay < 1 ms

    We use ::Sleep(x) to stop the program for x ms.
    But we want to be able to stop the program with less then 1 ms delay.
    (We doesn't want to use while(1)...... x++)
    How should we do when we are running the program for Windows NT?
    Is it possible to make a delay through BIOS commands??


  2. #2
    Join Date
    Apr 1999
    Location
    Chennai, India
    Posts
    48

    Re: Make a time delay < 1 ms

    hi,

    check QueryPerformanceCounter and QueryPerformanceFrequency from SDK

    u can have a loop running finding the time lapse !

    if ur sure of assembly write a delay routine ( u should find them in basic microprocessor books )

    bye


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured