Garry's Mod Wiki

system.UpTime

  number system.UpTime()

Description

Returns the amount of seconds since the Steam user last moved their mouse.

This is a direct binding to ISteamUtils->GetSecondsSinceComputerActive, and is most likely related to Steam's automatic "Away" online status.

This function does not work on Dedicated Servers and will instead return no value.

Returns

1 number
The amount of seconds since the Steam user last moved their mouse.