lf an additional Delay is needed, it could be added to the class to cause delays in microseconds. but a restriction should be made so it is no less than about 2 or 3 microseconds. because of the time that it takes to add the time to the count from the time-stamp counter.
Example 18-3 shows a sample dialog application that used Delay() to wait for a second after clicking the button before changing the foreground color of Activex Label. What does not appear in the example is that at the beginning of the dialog class an#include "TimeD.h" statement appears. The software itself is in the TODO: section of the OnInitDialog function.