Method: LinuxStat::Kernel.ticks
- Defined in:
- lib/linux_stat/kernel.rb
.ticks ⇒ Object Also known as: clk_tck
Returns the sc_clk_tck or the same output from command ‘getconf CLK_TCK`.
Also, clk_tck is an alias of this method.
The output is also cached ; as changing the value in runtime is unexpected.
181 182 183 |
# File 'lib/linux_stat/kernel.rb', line 181 def ticks @@tick ||= LinuxStat::Sysconf.sc_clk_tck end |