summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/tod.h
blob: 57609b994fcb04dc55ddb07636006bbfe576cc8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 * @file
 *
 * @ingroup ScoreTOD
 *
 * @brief Time of Day Handler API
 */

/*
 *  COPYRIGHT (c) 1989-2009.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.com/license/LICENSE.
 */

#ifndef _RTEMS_SCORE_TOD_H
#define _RTEMS_SCORE_TOD_H

#include <rtems/score/basedefs.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
 * @brief Returns the nanoseconds since the last clock tick.
 *
 * @ingroup ScoreTOD
 *
 * @return The nanoseconds since the last clock tick.
 */
typedef uint32_t ( *TOD_Nanoseconds_since_last_tick_routine )( void );

#ifdef __cplusplus
}
#endif

#endif
/* end of include file */