summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/clockgettod.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rtems: Fix sp2038 test.Chris Johns2014-05-221-14/+93
| | | | | | | | Avoid using newlib's gmtime_r call which fails with a max signed int. Add an RTEMS specific version for 1/1/1988 to 31/12/2100. Update sp2038 to test every day from 1/1/1988 to 31/12/2100. Only days need be tested as the code splits the seconds based on days.
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* score: Add and use _TOD_Is_set()Sebastian Huber2013-08-011-1/+1
|
* score: Rename tod.h to todimpl.hSebastian Huber2013-08-011-1/+1
|
* score: Merge tod implementation into one fileSebastian Huber2013-07-261-6/+1
| | | | | Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
* rtems misc: Clean up Doxygen GCI Task #5Mathew Kallada2012-12-051-2/+7
| | | | http://www.google-melange.com/gci/task/view/google/gci2012/8015207
* score: New structure TOD_ControlSebastian Huber2012-06-141-1/+1
| | | | | Group the global TOD variables (_TOD_Now, _TOD_Uptime, and _TOD_Is_set) in a structure to reduce address loads in _TOD_Tickle_ticks().
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* Whitespace removal.Ralf Corsepius2009-11-301-1/+1
|
* 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-12-161-1/+3
| | | | | | | | | | * libcsupport/src/__times.c, posix/src/adjtime.c, posix/src/clockgetres.c, posix/src/sysconf.c, rtems/src/clockgettickspersecond.c, rtems/src/clockgettod.c, rtems/src/clockset.c, rtems/src/clocktodvalidate.c, score/src/timespecfromticks.c, score/src/timespectoticks.c, score/src/ts64toticks.c: More case converted to use configuration table entry not _TOD_Microseconds_per_tick.
* 2008-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-03-111-0/+56
* rtems/Makefile.am, rtems/include/rtems/rtems/clock.h, rtems/src/clockget.c: * rtems/src/clockgetsecondssinceepoch.c, rtems/src/clockgettickspersecond.c, rtems/src/clockgettickssinceboot.c, rtems/src/clockgettod.c, rtems/src/clockgettodtimeval.c: New files. Refactored rtems_clock_get into 5 methods which are single purpose and more strongly typed. They are: rtems_clock_get_tod - Get TOD in Classic API structure rtems_clock_get_tod_timeval - Get TOD in struct timeval rtems_clock_get_seconds_since_epoch - Get TOD as seconds since 1988 rtems_clock_get_ticks_since_boot - Get ticks since boot rtems_clock_get_ticks_per_second - Get ticks per second