[etherlab-dev] dc_user main.c

Henry Bausley hbausley at deltatau.com
Mon Nov 29 18:01:06 CET 2010

Should the user space distributed clock example subtract the seconds
elapsed from 1970 to 2000 to get to ethercat time?

#define SEC_ON_JAN_1_2000 946684800
#define TIMESPEC2NS(T) ((uint64_t)((T).tv_sec - SEC_ON_JAN_1_2000) *
NSEC_PER_SEC + (T).tv_nsec)

Outbound scan for Spam or Virus by Barracuda at Delta Tau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20101129/4d62eca1/attachment.htm>

More information about the etherlab-dev mailing list