GetTimePlayed

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Returns the time elapsed since the game's executable was launched. Accepts one optional argument - a time unit:

0: milliseconds (default)
1: seconds
2: minutes

Syntax

[help]
(float) GetTimePlayed unit:0/1/2

Example

set fTimePlayed to GetTimePlayed 1 // e.g. 50.5 seconds 

See Also