I am writing some MIDI sequencing software, and have found the standard Timer component for Visuall C++ to be too slow, and it skips beats. I know that you can implement your own timing code into your program, which is extremely accurate (milisecond intervals). You do this with the SetTimer and TimerProc functions. Can you show me an example *.cpp file which illustrates how to write your own callback function TimerProc, and how to call the SetTimer function to use the callback function every time the interval has expired? Basicly, I need some kind of very accurate timing mechanism that will execute a block of code every time a timer message is recieved. Can you Help? I use Borland C++ Builder.