Show Table of Contents
function::cpu_clock_ns
Name
function::cpu_clock_ns — Number of nanoseconds on the given cpu's clock
Synopsis
cpu_clock_ns:long(cpu:long)
Arguments
cpu- Which processor's clock to read
Description
This function returns the number of nanoseconds on the given cpu's clock. This is always monotonic comparing on the same cpu, but may have some drift between cpus (within about a jiffy).

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.