To handle the case where incrementing the minute will cause a roll over,
Lets say system time = cd:59:ab:xyz when pulse arrives.
if xyz < 998 then
Set the time to 23:59:59:000
Wait for system time to Rollover
Set the time to 00:00:01:000
EndIf
If the milliseconds is 998 or 999, the synchronisation will be out by up to 2 millisecs.
can anyone provide me the STL coding for the above mentioned concept.
Its very Urgent
Lets say system time = cd:59:ab:xyz when pulse arrives.
if xyz < 998 then
Set the time to 23:59:59:000
Wait for system time to Rollover
Set the time to 00:00:01:000
EndIf
If the milliseconds is 998 or 999, the synchronisation will be out by up to 2 millisecs.
can anyone provide me the STL coding for the above mentioned concept.
Its very Urgent