General delay functions implemented under DOS DELAY2

xiaoxiao2021-03-06  38

The principle of using the kenel32.dll api in VB is the same,

Compilation environment: TC3.

The TC's own delay changes with a variety of performances with the machine.

My function should be better, I hope everyone will test it, give some advice.

#include float const SecPerFrame = 0.05; void Delay2 (double Times, float SecPerFrame) {int Running = 1; double Tmptime = (double) clock () / (double) CLOCKS_PER_SEC; double caculate = 0, delaying = SecPerFrame; while (Running && caculate

转载请注明原文地址:https://www.9cbs.com/read-68986.html

New Post(0)