Replace Sys calls with EngineTime getRawTimeInMs