Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timed events
Message
De
10/01/2005 16:51:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
00975807
Message ID:
00975834
Vues:
18
>>The Timer interval is not specified in minutes, but in miliseconds. Just calculate the next time minus the current time (in seconds), and multiply by 1000, to set the appropriate .Interval.
>>
>>>I'm building a timeclock buzzer application. At certain times during the day buzzer.wav plays. So I need to figure out how to fire off these events. The times I want buzzer.wav to play is something like...
>>>
>>>05:59
>>>06:00
>>>11:29
>>>11:30
>>>14:29
>>>14:30
>>>
>>>
>>>I can use a timer and compare the system time but I need the timer interval to be less than 1 minute (as you can see above) and that could cause the buzzer to play multiple times within that time slot. Any ideas?
>
>This sound inaccurate. Seems like it could wander using this method. That's why I figured if every 10 seconds I could look and see if my machine time (atomic time) was 05:59 I would play the wav. Your method leaves me at the mercy of the internal clock tick correct?

You mean you have an internal clock ticker that needs very often updates from atomic clock? Then it'd be almost all the time out off synch with atomic clock. I'd then first buy a more trustable HW.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform