clock - #define HZ 10000#else More realistic value#define...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _CLOCK_H_ #define _CLOCK_H_ #include "opt-synchprobs.h" /* * Time-related definitions. * * hardclock() is called from the timer interrupt HZ times a second. * gettime() may be used to fetch the current time of day. * getinterval() computes the time from time1 to time2. */ /* hardclocks per second */ #if OPT_SYNCHPROBS /* Make synchronization more exciting :) */
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: #define HZ 10000 #else /* More realistic value */ #define HZ 100 #endif void hardclock(void); void gettime(time_t *seconds, u_int32_t *nanoseconds); void getinterval(time_t secs1, u_int32_t nsecs, time_t secs2, u_int32_t nsecs2, time_t *rsecs, u_int32_t *rnsecs); #endif /* _CLOCK_H_ */...
View Full Document

This note was uploaded on 02/15/2012 for the course CS 153 taught by Professor Brecht during the Spring '12 term at Alabama.

Ask a homework question - tutors are online