Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
336 views
in Technique[技术] by (71.8m points)

Elapsed time between two Seconds Since Midnight variables embedded c

I have two clocks counting seconds since midnight. One is more accurate than the other. If these two ever get more than 60 seconds apart I want to take some action. They each roll over at 86400. How can I determine how far apart they are? Is this easier than I am making it out to be? Thank you so much for your help!

t1       t2        Answer
--       --        ------
10       20        10
10       86300     110
10       5         5
1100     1200      100
1200     1100      100
86350    86390     40
86350    10        60
86350    50000     36350
question from:https://stackoverflow.com/questions/65849024/elapsed-time-between-two-seconds-since-midnight-variables-embedded-c

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...