?
Solved

Timing seconds or milliseconds in VC6.0

Posted on 2003-03-04
2
Medium Priority
?
409 Views
Last Modified: 2013-11-20
How can i build a delay in my program?
for instance:

void delay(int seconds/milliseconds)
{
... ?
}

Now i time the seconds by constantly checking the system time, but that is not that accurate.
0
Comment
Question by:_bdc_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
kusamson earned 100 total points
ID: 8068006
you can use Sleep(milliseconds);
0
 

Author Comment

by:_bdc_
ID: 8073970
I accept this answer for this question because i found another solution with  DWORD gettickcount(void);
So this topic can be locked.
THX
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question