14 int main(
int argc,
char* argv[])
20 JParser<> zap(
"Example program to print system information.");
24 catch(
const exception &error) {
25 FATAL(error.what() << endl);
32 cout <<
"up-time " << info.uptime << endl;
33 cout <<
"RAM total " << info.totalram << endl;
34 cout <<
"RAM free " << info.freeram << endl;
35 cout <<
"memory " << info.mem_unit << endl;
General purpose messaging.
Utility class to parse command line options.
int main(int argc, char *argv[])
Utility class to parse command line options.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for system information.
unsigned long long int getTotalRAM() const
Get total RAM.