vfs_timestamp(9)

vfs_timestamp9

Generate current timestamp

Usage

#include <sys/param.h>

#include <sys/vnode.h>

void

vfs_timestamp(struct timespec *tsp);

Overview

The vfs_timestamp() function fills in tsp with the current time.

The precision is based on the value of the vfs.timestamp_precision sysctl variable:

0

seconds only; nanoseconds are zeroed.

1

seconds and nanoseconds, accurate within 1/HZ.

2

seconds and nanoseconds, truncated to microseconds.

≥3

seconds and nanoseconds, maximum precision.

Authors

This manual page was written by Chad David ⟨[email protected]⟩.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.