RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros | Functions
clockgettod.c File Reference

This source file contains the implementation of rtems_clock_get_tod(). More...

#include <rtems/rtems/clock.h>
#include <rtems/score/todimpl.h>
#include <rtems/config.h>

Macros

#define RTEMS_SECS_PER_MINUTE   (60UL)
 
#define RTEMS_MINUTE_PER_HOUR   (60UL)
 
#define RTEMS_SECS_PER_HOUR   (RTEMS_SECS_PER_MINUTE * RTEMS_MINUTE_PER_HOUR)
 
#define RTEMS_HOURS_PER_DAY   (24UL)
 
#define RTEMS_SECS_PER_DAY   (RTEMS_SECS_PER_HOUR * RTEMS_HOURS_PER_DAY)
 
#define RTEMS_DAYS_PER_YEAR   (365UL)
 
#define RTEMS_YEAR_BASE   (1970UL)
 

Functions

rtems_status_code rtems_clock_get_tod (rtems_time_of_day *time_of_day)
 Gets the time of day associated with the current CLOCK_REALTIME.
 

Detailed Description

This source file contains the implementation of rtems_clock_get_tod().