Steven Beaumont
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Posts posted by Steven Beaumont
-
-
You might want to refer to this thread:
http://forums.deltatau.com/showthread.php?tid=2518&highlight=NTP
Sorry I have already passed the stage of getting time synchronised to a master clock.
Since my last post I have also got system time from the Linux operating system using C code, thank you for replying anyway.
Regards
Steven
-
I have been working on capturing encoder positions and logging it relative to real world UTC time.
I have the Linux operating system synced to a ptp time source but the only access to this time I have found is the C++ code "time()" which give time as an integer in seconds, is there a method to get sub second time from within C code, I am looking for at least millisecond resolution anything better would be a plus.
I have already tried to use "ftime()" but found it crashed the system.
any help here would be appreciated.
Regards
Steven
Linux time stamping
in Power PMAC
Posted
Thanks used this code but it locked up system if it is run on every plc cycle
struct timeval MyTimeVal;
gettimeofday(&MyTimeVal, NULL);
Which code would be best in your opinion.
Regards
Steven