timetc.h (36119) | timetc.h (36199) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)time.h 8.5 (Berkeley) 5/4/95 | 1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)time.h 8.5 (Berkeley) 5/4/95 |
34 * $Id: time.h,v 1.26 1998/04/23 14:12:06 eivind Exp $ | 34 * $Id: time.h,v 1.27 1998/05/17 11:53:40 phk Exp $ |
35 */ 36 37#ifndef _SYS_TIME_H_ 38#define _SYS_TIME_H_ 39 40#include <sys/types.h> 41 42/* --- 81 unchanged lines hidden (view full) --- 124 * `other' points to the opposite "work" timecounter, ie, in index one it 125 * points to index two and vice versa 126 * 127 * `tweak' points to index zero. 128 * 129 */ 130 131struct timecounter; | 35 */ 36 37#ifndef _SYS_TIME_H_ 38#define _SYS_TIME_H_ 39 40#include <sys/types.h> 41 42/* --- 81 unchanged lines hidden (view full) --- 124 * `other' points to the opposite "work" timecounter, ie, in index one it 125 * points to index two and vice versa 126 * 127 * `tweak' points to index zero. 128 * 129 */ 130 131struct timecounter; |
132typedef unsigned timecounter_get_t __P((struct timecounter *)); 133typedef u_int64_t timecounter_delta_t __P((void)); | 132typedef u_int timecounter_get_t __P((void)); |
134 135struct timecounter { 136 /* These fields must be initialized by the driver. */ | 133 134struct timecounter { 135 /* These fields must be initialized by the driver. */ |
137 timecounter_get_t *get_timedelta; 138 timecounter_delta_t *get_timecount; 139 u_int64_t counter_mask; | 136 timecounter_get_t *get_timecount; 137 u_int counter_mask; |
140 u_int32_t frequency; 141 char *name; 142 /* These fields will be managed by the generic code. */ 143 int cost; 144 int32_t adjustment; 145 u_int32_t scale_micro; 146 u_int32_t scale_nano_i; 147 u_int32_t scale_nano_f; | 138 u_int32_t frequency; 139 char *name; 140 /* These fields will be managed by the generic code. */ 141 int cost; 142 int32_t adjustment; 143 u_int32_t scale_micro; 144 u_int32_t scale_nano_i; 145 u_int32_t scale_nano_f; |
148 u_int64_t offset_count; | 146 u_int offset_count; |
149 u_int32_t offset_sec; 150 u_int32_t offset_micro; 151 u_int64_t offset_nano; 152 struct timeval microtime; 153 struct timespec nanotime; 154 struct timecounter *other; 155 struct timecounter *tweak; 156}; --- 143 unchanged lines hidden --- | 147 u_int32_t offset_sec; 148 u_int32_t offset_micro; 149 u_int64_t offset_nano; 150 struct timeval microtime; 151 struct timespec nanotime; 152 struct timecounter *other; 153 struct timecounter *tweak; 154}; --- 143 unchanged lines hidden --- |