It took me quite a while to find a well encapsulated, and easy to use API Timer.
So I thought I would share it with you guys/gals.

The author does not wish his code replicated, so I will provide a link instead.
Paradoxes

There is a download, and the web page also shows how to call it.

Here is my tweaked example for calling it.

VB Code:
  1. Option Explicit
  2.  
  3. Dim WithEvents Alarm As AlarmClass
  4.  
  5. 'Public Const MIN_ONE As Long = 60000  'Put this in AlarmModule.bas
  6.  
  7. Private Sub Alarm_Alarm()
  8.    Print "Event Fired " & Time
  9.    MsgBox "Alarm!"
  10. End Sub
  11.  
  12. Private Sub cmdSetAlarm_Click()
  13.    'Alarm.SetAlarm 5000
  14.    Print "Start " & Time
  15.    Alarm.SetAlarm MIN_ONE * 2
  16. End Sub
  17.  
  18. Private Sub cmdCancelAlarm_Click()
  19.    Alarm.CancelAlarm
  20. End Sub
  21.  
  22. Private Sub Form_Load()
  23.    Set Alarm = New AlarmClass
  24. End Sub
  25.  
  26. Private Sub Form_Unload(Cancel As Integer)
  27.    Set Alarm = Nothing
  28. End Sub

I believe this should be in the Codebank, but I am unsure if there is a different method of submitting it ?