src/linux_parser.cpp
long LinuxParser::UpTime(int pid) { 
    long pidStartTime = ReadPidStatFile(pid, "StartTime")/sysconf(_SC_CLK_TCK) ;
    long systemUpTime = UpTime() ;
    long pidUpTime = systemUpTime - pidStartTime ;
    return pidUpTime ;
}
//Read and return the uptime of a process
Read and return the uptime of a process
Read and return the uptime of a process
long LinuxParser::UpTime(int pid) { 
    long pidStartTime = ReadPidStatFile(pid, "StartTime")/sysconf(_SC_CLK_TCK) ;
    long systemUpTime = UpTime() ;
    long pidUpTime = systemUpTime - pidStartTime ;
    return pidUpTime ;
}
long LinuxParser :: UpTime ( int pid ) { long pidStartTime = ReadPidStatFile ( pid , " " ) / sysconf ( _SC_CLK_TCK ) ; long systemUpTime = UpTime ( ) ; long pidUpTime = systemUpTime - pidStartTime ; return pidUpTime ; }
Read and return the uptime of a process
Read and return the uptime of a process