Skip to content

Helper function bpf_ktime_get_ns

v4.1

Definition

Copyright (c) 2015 The Libbpf Authors. All rights reserved.

Return the time elapsed since system boot, in nanoseconds. Does not include time the system was suspended. See: clock_gettime(CLOCK_MONOTONIC)

Returns

Current ktime.

static __u64 (* const bpf_ktime_get_ns)(void) = (void *) 5;

Usage

Docs could be improved

This part of the docs is incomplete, contributions are very welcome

Program types

This helper call can be used in the following program types:

Example

Docs could be improved

This part of the docs is incomplete, contributions are very welcome