X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/de355530ae67247cbd0da700edb3a2a1dae884c2..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/mach/mach_time.h diff --git a/osfmk/mach/mach_time.h b/osfmk/mach/mach_time.h index fe70975e0..e1bb2d17c 100644 --- a/osfmk/mach/mach_time.h +++ b/osfmk/mach/mach_time.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2001-2005 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -19,24 +19,13 @@ * * @APPLE_LICENSE_HEADER_END@ */ -/* - * Copyright (c) 2001 Apple Computer, Inc. All rights reserved. - * - * HISTORY - * - * 30 January 2001 (debo) - * Created. - */ #ifndef _MACH_MACH_TIME_H_ #define _MACH_MACH_TIME_H_ #include -uint64_t mach_absolute_time(void); - -kern_return_t mach_wait_until( - uint64_t deadline); +#include struct mach_timebase_info { uint32_t numer; @@ -46,7 +35,18 @@ struct mach_timebase_info { typedef struct mach_timebase_info *mach_timebase_info_t; typedef struct mach_timebase_info mach_timebase_info_data_t; +__BEGIN_DECLS +#ifndef KERNEL + kern_return_t mach_timebase_info( mach_timebase_info_t info); +kern_return_t mach_wait_until( + uint64_t deadline); + +#endif /* KERNEL */ + +uint64_t mach_absolute_time(void); +__END_DECLS + #endif /* _MACH_MACH_TIME_H_ */