Lines Matching refs:timetrim
1 /* $NetBSD: timetrim.c,v 1.5 2020/05/25 20:47:37 christos Exp $ */
5 * timetrim.c
7 * "timetrim" allows setting and adjustment of the system clock frequency
12 * offset (drift) values; to convert to a timetrim value, multiply by
15 * "timetrim" with no arguments just prints out the current kernel value.
19 * than timetrim native units.
21 * Note that there is a limit of +-3000000 (0.3%) on the timetrim value
41 #define USAGE "usage: timetrim [-n] [[-i] value]\n"
53 long timetrim;
71 if (syssgi(SGI_GETTIMETRIM, &timetrim) < 0) {
77 if (systune(SYSTUNE_GET, "timetrim", &timetrim) < 0) {
85 fprintf(stdout, "%0.5f\n", SGITONTP(timetrim));
87 fprintf(stdout, "%ld\n", timetrim);
100 timetrim += value;
102 timetrim = value;
104 if (syssgi(SGI_SETTIMETRIM, timetrim) < 0) {
110 if (systune(SYSTUNE_SET, "timer", "timetrim", &timetrim) < 0) {