source: rtems/cpukit/score/src/ts64getnanoseconds.c @ c86da31c

4.115
Last change on this file since c86da31c was 28352fae, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/29/09 at 13:51:53

Whitespace removal.

  • Property mode set to 100644
File size: 659 bytes
Line 
1/**
2 *  @file  score/src/ts64toticks.c
3 */
4
5/*
6 *  COPYRIGHT (c) 1989-2008.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#if HAVE_CONFIG_H
17#include "config.h"
18#endif
19
20#include <sys/types.h>
21
22#include <rtems/system.h>
23#include <rtems/score/timestamp.h>
24
25#if defined(CPU_RTEMS_SCORE_TIMESTAMP_IS_INT64) && \
26    !defined(CPU_RTEMS_SCORE_TIMESTAMP_INT64_INLINE)
27uint32_t _Timestamp64_Get_nanoseconds(
28  Timestamp64_Control *_time
29)
30{
31  return *(_time) % 1000000000;
32}
33#endif
Note: See TracBrowser for help on using the repository browser.