Chapter 3. Timestamp Functions

Table of Contents

function::HZ — Kernel HZ
function::cpu_clock_ms — Number of milliseconds on the given cpu's clock
function::cpu_clock_ns — Number of nanoseconds on the given cpu's clock
function::cpu_clock_s — Number of seconds on the given cpu's clock
function::cpu_clock_us — Number of microseconds on the given cpu's clock
function::delete_stopwatch — Remove an existing stopwatch
function::get_cycles — Processor cycle count
function::gettimeofday_ms — Number of milliseconds since UNIX epoch
function::gettimeofday_ns — Number of nanoseconds since UNIX epoch
function::gettimeofday_s — Number of seconds since UNIX epoch
function::gettimeofday_us — Number of microseconds since UNIX epoch
function::jiffies — Kernel jiffies count
function::local_clock_ms — Number of milliseconds on the local cpu's clock
function::local_clock_ns — Number of nanoseconds on the local cpu's clock
function::local_clock_s — Number of seconds on the local cpu's clock
function::local_clock_us — Number of microseconds on the local cpu's clock
function::read_stopwatch_ms — Reads the time in milliseconds for a stopwatch
function::read_stopwatch_ns — Reads the time in nanoseconds for a stopwatch
function::read_stopwatch_s — Reads the time in seconds for a stopwatch
function::read_stopwatch_us — Reads the time in microseconds for a stopwatch
function::start_stopwatch — Start a stopwatch
function::stop_stopwatch — Stop a stopwatch

Each timestamp function returns a value to indicate when a function is executed. These returned values can then be used to indicate when an event occurred, provide an ordering for events, or compute the amount of time elapsed between two time stamps.