home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / misc / 4286 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  903 b 

  1. Path: sparky!uunet!gatech!gatech!dcatla!cuawj
  2. From: cuawj@dcatla.uucp (Andy Jacobs)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Accurate Timing In Visual Basic
  5. Message-ID: <1992Dec16.083743.8494@dcatla.uucp>
  6. Date: 16 Dec 92 13:37:43 GMT
  7. References: <29567@castle.ed.ac.uk>
  8. Organization: Digital Communications Associates, Alpharetta, GA
  9. Lines: 10
  10.  
  11. How accurate do you need it?  The easiest way is to add a timer that increments
  12. a global variable.  Simply initilize the variable when the form is loaded and
  13. refer to it when you want to know elapsed time, or have the timer event itself
  14. do something when the variable attains a certain value.
  15.  
  16. A more accurate, but harder-to-implement way would be to make a windows call
  17. to get the time (if there is one).  I would have to look this up for details.
  18. -----
  19.  - Andy Jacobs
  20.                         This Signature file under construction...   
  21.