[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

timers

Posted on 1998-10-19
2
Medium Priority
?
163 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
[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
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 320 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

650 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