def getUptime(self):
try:<EOL><INDENT>fp = open(uptimeFile, '<STR_LIT:r>')<EOL>line = fp.readline()<EOL>fp.close()<EOL><DEDENT>except:<EOL><INDENT>raise IOError('<STR_LIT>' % uptimeFile)<EOL><DEDENT>return float(line.split()[<NUM_LIT:0>])<EOL>
Return system uptime in seconds.

        @return: Float that represents uptime in seconds.