Gameplay::getBenchmarkTime

From RAGE Multiplayer Wiki
Revision as of 11:57, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets the system time step since the last frame ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getBenchmarkTime(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const benchmarkTime = mp.game.gameplay.getBenchmarkTime(); mp.console.logInfo(`Bench mark time is ${benchmarkTime}`) </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Categor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

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}`)


See also