Tue Jul 20 08:36:11 2021 UTC ()
Trailing whitespace


(skrll)
diff -r1.46 -r1.47 src/sys/sys/timevar.h

cvs diff -r1.46 -r1.47 src/sys/sys/timevar.h (expand / switch to unified diff)

--- src/sys/sys/timevar.h 2020/12/08 04:09:38 1.46
+++ src/sys/sys/timevar.h 2021/07/20 08:36:11 1.47
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: timevar.h,v 1.46 2020/12/08 04:09:38 thorpej Exp $ */ 1/* $NetBSD: timevar.h,v 1.47 2021/07/20 08:36:11 skrll Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2005, 2008, 2020 The NetBSD Foundation, Inc. 4 * Copyright (c) 2005, 2008, 2020 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -144,38 +144,38 @@ struct ptimers { @@ -144,38 +144,38 @@ struct ptimers {
144}; 144};
145 145
146extern kmutex_t itimer_mutex; /* XXX */ 146extern kmutex_t itimer_mutex; /* XXX */
147 147
148/* 148/*
149 * Functions for looking at our clock: [get]{bin,nano,micro}[up]time() 149 * Functions for looking at our clock: [get]{bin,nano,micro}[up]time()
150 * 150 *
151 * Functions without the "get" prefix returns the best timestamp 151 * Functions without the "get" prefix returns the best timestamp
152 * we can produce in the given format. 152 * we can produce in the given format.
153 * 153 *
154 * "bin" == struct bintime == seconds + 64 bit fraction of seconds. 154 * "bin" == struct bintime == seconds + 64 bit fraction of seconds.
155 * "nano" == struct timespec == seconds + nanoseconds. 155 * "nano" == struct timespec == seconds + nanoseconds.
156 * "micro" == struct timeval == seconds + microseconds. 156 * "micro" == struct timeval == seconds + microseconds.
157 *  157 *
158 * Functions containing "up" returns time relative to boot and 158 * Functions containing "up" returns time relative to boot and
159 * should be used for calculating time intervals. 159 * should be used for calculating time intervals.
160 * 160 *
161 * Functions without "up" returns GMT time. 161 * Functions without "up" returns GMT time.
162 * 162 *
163 * Functions with the "get" prefix returns a less precise result 163 * Functions with the "get" prefix returns a less precise result
164 * much faster than the functions without "get" prefix and should 164 * much faster than the functions without "get" prefix and should
165 * be used where a precision of 1/HZ (eg 10 msec on a 100HZ machine) 165 * be used where a precision of 1/HZ (eg 10 msec on a 100HZ machine)
166 * is acceptable or where performance is priority. 166 * is acceptable or where performance is priority.
167 * (NB: "precision", _not_ "resolution" !)  167 * (NB: "precision", _not_ "resolution" !)
168 *  168 *
169 */ 169 */
170 170
171void binuptime(struct bintime *); 171void binuptime(struct bintime *);
172void nanouptime(struct timespec *); 172void nanouptime(struct timespec *);
173void microuptime(struct timeval *); 173void microuptime(struct timeval *);
174 174
175void bintime(struct bintime *); 175void bintime(struct bintime *);
176void nanotime(struct timespec *); 176void nanotime(struct timespec *);
177void microtime(struct timeval *); 177void microtime(struct timeval *);
178 178
179void getbinuptime(struct bintime *); 179void getbinuptime(struct bintime *);
180void getnanouptime(struct timespec *); 180void getnanouptime(struct timespec *);
181void getmicrouptime(struct timeval *); 181void getmicrouptime(struct timeval *);