how long will it take?

hi,I want to get acuurate time from another PC ,(both in QNX4.25)how long
will the command
"rtc " take? or,how to test?

thanks!

“diamond” <gpjin@nairc.ac.cn> wrote in message
news:a1dkfi$8ic$1@inn.qnx.com

hi,I want to get acuurate time from another PC ,(both in QNX4.25)how long
will the command
"rtc " take? or,how to test?

That’s unpredictable, mostly because you are going over the network.
You could measure it by running “time rtc net x”. From memory
the time command has a resolution of 10ms.

From experience I’d say on a not to busy network the delay is typical
negligeable, <50ms.

There are protocol (NTP) that are use to keep computers synchronised
down to 1 ms. You would use ntp or based your code on that protocol.




thanks!