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