VG3_wait_time()Sleep the rest of a defined time so that every game loop consumes the same time.
int VG3_wait_time(int msec)
|msec||Defined time in milliseconds a game loop should consume|
Returns the actual sleped time.
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.