Macros§
- every_n
- Execute an expression every n times. For example
every_n!(1 + 2, println!("I'm mod 3")
will print on the 1st, 4th, and so on calls.
Functions§
- convert_
bytes - Convert
val
bytes into a human friendly string - convert_
duration - Convert
val
microseconds into a human friendly string. Largest unit used is seconds. - convert_
freq - Convert
val
Hz into a human friendly string - fold_
string - Fold a long string to a fixed size string and keep the front and back
- get_
belowrc_ cmd_ section_ key - The cmd section key for belowrc
- get_
belowrc_ dump_ section_ key - The dump section key for belowrc
- get_
belowrc_ filename - Get the belowrc filename.
- get_
belowrc_ view_ section_ key - The view section key for belowrc
- get_
prefix - get_
system_ time - Convert
timestamp
from seconds since epoch toSystemTime
- get_
unix_ timestamp - Convert
timestamp
fromSystemTime
to seconds since epoch - is_
cpu_ significant - read_
kern_ file_ to_ internal_ buffer - systemtime_
to_ datetime - Convert system time to human readable datetime.
- timestamp_
to_ datetime - Convert system timestamp to human readable datetime.