How can I write a real-time clock function for VB program?

How can I write a real-time clock function (date & time) to activate a delay interval to my VB program?
The easy thing is to use the Timer OCX supplied with Visual Basic. That has around 500 millisecond accuracy. To get a more accurate timer, you're going to have to use the Win32 multimedia timers directly from Visual Basic. Search MSDN Online as there are numerous examples of using these APIs you can find.

This was first published in May 2002

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.