Solved

timers

Posted on 1998-10-19
2
160 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

726 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