Changeset View
Changeset View
Standalone View
Standalone View
lib/libsys/clock_gettime.2
| Show All 29 Lines | |||||
| .Dd October 15, 2025 | .Dd October 15, 2025 | ||||
| .Dt CLOCK_GETTIME 2 | .Dt CLOCK_GETTIME 2 | ||||
| .Os | .Os | ||||
| .Sh NAME | .Sh NAME | ||||
| .Nm clock_gettime , | .Nm clock_gettime , | ||||
| .Nm clock_settime , | .Nm clock_settime , | ||||
| .Nm clock_getres | .Nm clock_getres | ||||
| .Nd get/set/calibrate date and time | .Nd get/set/calibrate date and time | ||||
| .Sh LIBRARY | |||||
| .Lb libc | |||||
| .Sh SYNOPSIS | .Sh SYNOPSIS | ||||
| .Lb libc | |||||
| .In time.h | .In time.h | ||||
| .Ft int | .Ft int | ||||
| .Fn clock_gettime "clockid_t clock_id" "struct timespec *tp" | .Fn clock_gettime "clockid_t clock_id" "struct timespec *tp" | ||||
| .Ft int | .Ft int | ||||
| .Fn clock_settime "clockid_t clock_id" "const struct timespec *tp" | .Fn clock_settime "clockid_t clock_id" "const struct timespec *tp" | ||||
| .Ft int | .Ft int | ||||
| .Fn clock_getres "clockid_t clock_id" "struct timespec *tp" | .Fn clock_getres "clockid_t clock_id" "struct timespec *tp" | ||||
| .Sh DESCRIPTION | .Sh DESCRIPTION | ||||
| ▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines | |||||