Solved

timers

Posted on 1998-10-19
2
153 Views
Last Modified: 2010-04-06
Hi! When my program starts i take a start time, then every second i take the current time, then
i show the difference as a duration in a label.The problem is every so often it fails to
show a second, even though it still keeps the correct duration, i understand this may be the
windows is because of its pre-emptive nature, is there a way i can stop this from happening
so often.
De
0
Comment
Question by:dapple
2 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 80 total points
ID: 1343337
If it is important to you that the duration is as close to one second as possible then you should look at using a multimedia timer.

Look at timeSetEvent and timeKillEvent.

You can use timeSetEvent to start a timer to call a callback function with millisecond accuracy if you want.

Cheers,

Raymond.
0
 
LVL 1

Author Comment

by:dapple
ID: 1343338
cool thanks for your help
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now