int uptime();
This function returns the number of seconds since the last driver reboot.
See also: time , ctime , localtime , time_expression
Beek @ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere