top of callback:sta = GetTickCount();bottom of callback:sto = GetTickCount();o = sto - sta;printf("Callback time: %d ms", o);