20 lines
431 B
Markdown
20 lines
431 B
Markdown
|
# cpufreq
|
||
|
|
||
|
Display current CPU frequencies from `/proc/cpuinfo`. This is a sample of the Nim language.
|
||
|
|
||
|
```
|
||
|
Usage: cpufreq [-b|--brief] [-t|--table] [-h|--help] [-v|--version]
|
||
|
```
|
||
|
|
||
|
# Build from source
|
||
|
|
||
|
First install Nim language compiler. See instructions of [Nim site](https://nim-lang.org/install.html).
|
||
|
|
||
|
Compile programm:
|
||
|
|
||
|
```
|
||
|
nim c cpufreq.nim
|
||
|
```
|
||
|
|
||
|
Done! You can place `cpufreq` executable to your PATH, e.g. `/urs/local/bin`.
|