@with_device
def boot_time():
 for line in read('/proc/stat').splitlines():
  (name, value) = line.split(None, 1)
  if (name == 'btime'):
   return int(value)

@ with_device def boot_time ( ) : for line in read ( '/proc/stat' ) . splitlines ( ) : ( name , value ) = line . split ( None , 1 ) if ( name == 'btime' ) : return int ( value )
return the system boot time expressed in seconds since the epoch .