Gameplay::getFrameTime
Client-Side Function
JavaScript Syntax
Gets the time since the last frame
Return value
- float
Syntax
mp.game.gameplay.getFrameTime();
Example
const frameTime = mp.game.gameplay.getFrameTime();
mp.console.logInfo(`Frame time is ${frameTime}`);