https://github.com/daramkun/libclew
https://github.com/daramkun/libclew
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/daramkun/libclew
- Owner: daramkun
- License: mit
- Created: 2024-10-29T16:18:36.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-07T16:22:53.000Z (6 months ago)
- Last Synced: 2025-01-12T07:46:52.903Z (3 months ago)
- Language: C
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## libclew
`libclew` is CPU efficiency level and SMT information determining library.### Usage
```cpp
#includeint main(int argc, char* argv[]) {
clew_cpu_info_t* cpu_info = clew_create();
for (auto i = 0; i < cpu_info->core_count; ++i) {
const auto current_core = cpu_info->cores[i];
...
}
clew_destroy(cpu_info);
cpu_info = nullptr;
}
```