RTEMS  5.0.0
bsd.h
Go to the documentation of this file.
1 
9 /*
10  * Copyright (c) 2015 embedded brains GmbH. All rights reserved.
11  *
12  * embedded brains GmbH
13  * Dornierstr. 4
14  * 82178 Puchheim
15  * Germany
16  * <rtems@embedded-brains.de>
17  *
18  * The license and distribution terms for this file may be
19  * found in the file LICENSE in this distribution or at
20  * http://www.rtems.org/license/LICENSE.
21  */
22 
23 #ifndef _RTEMS_BSD_H
24 #define _RTEMS_BSD_H
25 
27 #include <rtems/score/basedefs.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32 
42 RTEMS_INLINE_ROUTINE void rtems_bsd_bintime( struct bintime *bt )
43 {
45 }
46 
50 RTEMS_INLINE_ROUTINE void rtems_bsd_nanotime( struct timespec *ts )
51 {
53 }
54 
58 RTEMS_INLINE_ROUTINE void rtems_bsd_microtime( struct timeval *tv )
59 {
61 }
62 
66 RTEMS_INLINE_ROUTINE void rtems_bsd_binuptime( struct bintime *bt )
67 {
69 }
70 
74 RTEMS_INLINE_ROUTINE void rtems_bsd_nanouptime( struct timespec *ts )
75 {
77 }
78 
82 RTEMS_INLINE_ROUTINE void rtems_bsd_microuptime( struct timeval *tv )
83 {
85 }
86 
90 RTEMS_INLINE_ROUTINE void rtems_bsd_getbintime( struct bintime *bt )
91 {
93 }
94 
98 RTEMS_INLINE_ROUTINE void rtems_bsd_getnanotime( struct timespec *ts )
99 {
101 }
102 
107 {
109 }
110 
115 {
117 }
118 
123 {
125 }
126 
131 {
133 }
134 
137 #ifdef __cplusplus
138 }
139 #endif /* __cplusplus */
140 
141 #endif /* _RTEMS_BSD_H */
void _Timecounter_Bintime(struct bintime *bt)
Returns the wall clock time in the bintime format.
void _Timecounter_Binuptime(struct bintime *bt)
Returns the uptime in the bintime format.
#define RTEMS_INLINE_ROUTINE
Definition: basedefs.h:65
RTEMS_INLINE_ROUTINE void rtems_bsd_nanotime(struct timespec *ts)
Returns the wall clock time in the timespec format.
Definition: bsd.h:50
RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrouptime(struct timeval *tv)
Returns the uptime in the timeval format.
Definition: bsd.h:130
RTEMS_INLINE_ROUTINE void rtems_bsd_getmicrotime(struct timeval *tv)
Returns the wall clock time in the timeval format.
Definition: bsd.h:106
RTEMS_INLINE_ROUTINE void rtems_bsd_microuptime(struct timeval *tv)
Returns the wall clock time in the timeval format.
Definition: bsd.h:82
RTEMS_INLINE_ROUTINE void rtems_bsd_getnanouptime(struct timespec *ts)
Returns the uptime in the timespec format.
Definition: bsd.h:122
RTEMS_INLINE_ROUTINE void rtems_bsd_getnanotime(struct timespec *ts)
Returns the wall clock time in the timespec format.
Definition: bsd.h:98
void _Timecounter_Getnanotime(struct timespec *ts)
Returns the wall clock time in the timespec format.
RTEMS_INLINE_ROUTINE void rtems_bsd_microtime(struct timeval *tv)
Returns the wall clock time in the timeval format.
Definition: bsd.h:58
RTEMS_INLINE_ROUTINE void rtems_bsd_getbintime(struct bintime *bt)
Returns the wall clock time in the bintime format.
Definition: bsd.h:90
RTEMS_INLINE_ROUTINE void rtems_bsd_bintime(struct bintime *bt)
Returns the wall clock time in the bintime format.
Definition: bsd.h:42
void _Timecounter_Nanouptime(struct timespec *ts)
Returns the uptime in the timespec format.
void _Timecounter_Getmicrotime(struct timeval *tv)
Returns the wall clock time in the timeval format.
void _Timecounter_Nanotime(struct timespec *ts)
Returns the wall clock time in the timespec format.
RTEMS_INLINE_ROUTINE void rtems_bsd_getbinuptime(struct bintime *bt)
Returns the uptime in the bintime format.
Definition: bsd.h:114
void _Timecounter_Getbintime(struct bintime *bt)
Returns the wall clock time in the bintime format.
RTEMS_INLINE_ROUTINE void rtems_bsd_binuptime(struct bintime *bt)
Returns the uptime in the bintime format.
Definition: bsd.h:66
void _Timecounter_Microtime(struct timeval *tv)
Returns the wall clock time in the timeval format.
void _Timecounter_Microuptime(struct timeval *tv)
Returns the uptime in the timeval format.
void _Timecounter_Getmicrouptime(struct timeval *tv)
Returns the uptime in the timeval format.
Basic Definitions.
RTEMS_INLINE_ROUTINE void rtems_bsd_nanouptime(struct timespec *ts)
Returns the uptime in the timespec format.
Definition: bsd.h:74
Timecounter API.
void _Timecounter_Getnanouptime(struct timespec *ts)
Returns the uptime in the timespec format.
void _Timecounter_Getbinuptime(struct bintime *bt)
Returns the uptime in the bintime format.