high accuracy clock with visual basic 
Author Message
 high accuracy clock with visual basic

I'd like to know if it's possible to get time with Visual Basic under
Windows 3.11, with more accuracy than one second. With languages as
Turbo C or Turbo Pascal under DOS, you can easily get current time with
milliseconds elapsed, but I don't know how to do that under Win3.11.
Thanks for your help!



Mon, 04 Dec 2000 03:00:00 GMT  
 high accuracy clock with visual basic

You might want to try making an external program in BASIC or C and having
the  VB prog open the external prog and have it write to a .txt  or .dat the
current time.... in other words.....

VB.mak

DO
RUN C:/GetTime.exe
MsgBox "GetTime.dat"
LOOP UNTIL INKEY$ <> ""

GetTime.exe

OPEN GetTime.dat
GetTime.dat = TIME$
CLOSE

This is a mix of Actual code and "talk"

Puter Wiz

http://members.xoom.com/VBStarr
ICQ# 7740457
P.S.
If you have to E-Mail remove the capital letters



Wed, 06 Dec 2000 03:00:00 GMT  
 high accuracy clock with visual basic

Try using a timer control....
The standard timer supplied with VB is highly inaccurate,
though. I would recommend downloading an eval copy
of the HITIMER control from www.mabry.com.

Quote:

>I'd like to know if it's possible to get time with Visual Basic under
>Windows 3.11, with more accuracy than one second. With languages as
>Turbo C or Turbo Pascal under DOS, you can easily get current time with
>milliseconds elapsed, but I don't know how to do that under Win3.11.
>Thanks for your help!



Thu, 07 Dec 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. More dos than basic: High freq clock

2. Accuracy problem in Visual Basic 6.0?

3. Clock Accuracy

4. Accuracy of system clock on pocketpc

5. Timer with high accuracy

6. PC CLOCK SYNCHRONIZING USING VISUAL BASIC

7. A question about the internal CPU clock in Visual Basic

8. How can I measure the clock speed of CPU using visual Basic

9. A clock in Visual Basic

10. showing a clock on a visual basic form

11. Visual Basic 4.0 and high speed modem routines

12. Hard High School Visual Basic Class Home Work, Please

 

 
Powered by phpBB® Forum Software