Klaus Keppler ([EMAIL PROTECTED]) wrote:
> Hi,
>
> How can i get the Real Time ( seconds since 1970, time_t) in an
> rt-thread. I need this time as timestamp for my aquired data.
>
> Because the system-time on my rtlinux-box drifts away many seconds the
> day, i would like to get the time from the RealTimeClockChip on the
> processor board, converted to time_t.
>
> Has anyone written some code which is doing this ?
CLOCK_REALTIME in the next snapshot of RTLinux will return time since 1970 etc.
Michael.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/