5
Last change
on this file since 7ee6437 was
ef23838,
checked in by Sebastian Huber <sebastian.huber@…>, on 12/03/18 at 12:10:21
|
score: Avoid sbintime_t in API headers
The sbintime_t is a non-POSIX type and not visible if strict standard
options are selected.
Move implementation details from <rtems/score/timestamp.h> to
<rtems/score/timestampimpl.h>.
Update #3598.
|
-
Property mode set to
100644
|
File size:
834 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Gets the System Uptime in the Struct Timeval Format |
---|
5 | * @ingroup ClassicClock |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * Copyright (c) 2012 embedded brains GmbH. All rights reserved. |
---|
10 | * |
---|
11 | * embedded brains GmbH |
---|
12 | * Obere Lagerstr. 30 |
---|
13 | * 82178 Puchheim |
---|
14 | * Germany |
---|
15 | * <rtems@embedded-brains.de> |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be |
---|
18 | * found in the file LICENSE in this distribution or at |
---|
19 | * http://www.rtems.org/license/LICENSE. |
---|
20 | */ |
---|
21 | |
---|
22 | #if HAVE_CONFIG_H |
---|
23 | #include "config.h" |
---|
24 | #endif |
---|
25 | |
---|
26 | #include <rtems/rtems/clock.h> |
---|
27 | #include <rtems/score/timestampimpl.h> |
---|
28 | #include <rtems/score/todimpl.h> |
---|
29 | |
---|
30 | void rtems_clock_get_uptime_timeval( struct timeval *uptime ) |
---|
31 | { |
---|
32 | Timestamp_Control snapshot_as_timestamp; |
---|
33 | |
---|
34 | _TOD_Get_zero_based_uptime( &snapshot_as_timestamp ); |
---|
35 | _Timestamp_To_timeval( &snapshot_as_timestamp, uptime ); |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.