src/linux_parser.cpp
long LinuxParser::UpTime() { 
  string upTime, waitTime, line;
  std::ifstream stream(kProcDirectory + kUptimeFilename);
  if (stream.is_open()) {
    std::getline(stream, line);
    std::istringstream linestream(line);
    linestream >> upTime >> waitTime;
  }

  return atol(upTime.c_str());
}
// TODO: Read and return the system uptime
Read and return the system uptime
Read and return the system uptime
long LinuxParser::UpTime() { 
  string upTime, waitTime, line;
  std::ifstream stream(kProcDirectory + kUptimeFilename);
  if (stream.is_open()) {
    std::getline(stream, line);
    std::istringstream linestream(line);
    linestream >> upTime >> waitTime;
  }
  return atol(upTime.c_str());
}
long LinuxParser :: UpTime ( ) { string upTime , waitTime , line ; std :: ifstream stream ( kProcDirectory + kUptimeFilename ) ; if ( stream . is_open ( ) ) { std :: getline ( stream , line ) ; std :: istringstream linestream ( line ) ; linestream >> upTime >> waitTime ; } return atol ( upTime . c_str ( ) ) ; }
TODO: Read and return the system uptime
TODO : Read and return the system uptime