@lru_cache()
def system_start_time():
 (start_time, parameter) = (time.time(), 'system start time')
 btime_line = _get_line('/proc/stat', 'btime', parameter)
 try:
  result = float(btime_line.strip().split()[1])
  _log_runtime(parameter, '/proc/stat[btime]', start_time)
  return result
 except:
  exc = IOError(('unable to parse the /proc/stat btime entry: %s' % btime_line))
  _log_failure(parameter, exc)
  raise exc

@ lru_cache ( ) def system_start_time ( ) : ( start_time , parameter ) = ( time . time ( ) , 'system start time' ) btime_line = _get_line ( '/proc/stat' , 'btime' , parameter ) try : result = float ( btime_line . strip ( ) . split ( ) [ 1 ] ) _log_runtime ( parameter , '/proc/stat[btime]' , start_time ) return result except : exc = IOError ( ( 'unable to parse the /proc/stat btime entry: %s' % btime_line ) ) _log_failure ( parameter , exc ) raise exc
provides the unix time when the system started .