Skip to main content

Gameplay::getBenchmarkTime

Client-side function

JavaScript​

Gets the system time step since the last frame

Return value​

  • float

Syntax​

mp.game.gameplay.getBenchmarkTime();

Example​

const benchmarkTime = mp.game.gameplay.getBenchmarkTime();
mp.console.logInfo(`Bench mark time is ${benchmarkTime}`)