Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Timing seconds or milliseconds in VC6.0

Posted on 2003-03-04
2
Medium Priority
?
428 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_
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

580 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