It does not do that on my end, when I add the required global variables. Please post your declaration of SpeedRun_Time.

Btw. once again there is a memory leak in your code. Every time you call this function three bitmaps vanish into the void.


Always learn from history, to be sure you make the same mistakes again...