VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_wait_time()

Once called a game-loop:
Sleep the rest of a defined time so that every game-loop consumes the same time.
SYNTAX
int VG3_wait_time(int msec)

FUNCTION PARAMETERS
msec Defined time in milliseconds a game-loop should consume

RETURN VALUE
Returns the actual sleped time.

DESCRIPTION
With this function every game-loop shall take the same time. E.g. if every game-loop should take 50 milliseconds, but the execution only needs 30 milliseconds, this function sleeps 20 milliseconds.