Geekinfo
Geekinfo provides developers with an cross-platform system information library. Geekinfo makes it easy to accurately determine the hardware and software configuration of a computer. C++ Example#include "geekinfo.h"
#include <iostream>
int main() {
std::cout << systemMetricName(kSystemMetricCPU) << ": " << systemMetric(kSystemMetricCPU) << std::endl;
return 0;
}C Example#include "geekinfo_c.h"
#include <stdio.h>
int main() {
printf("%s: %s\n", systemMetricName_C(kSystemMetricCPU), systemMetric_C(kSystemMetricCPU));
return 0;
}
|