K
K
K1NDER2021-07-04 12:39:14
Python
K1NDER, 2021-07-04 12:39:14

How to compare time correctly?

I am receiving and writing the time as a timestamp, how do I know if 20 minutes have passed?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-07-04
@K1NDER

This is the time in seconds. Subtract the results of the last measurement from the current time. If more than 20*60 have passed, then more than 20 minutes have passed.

R
Ronald McDonald, 2021-07-04
@Zoominger

Once a second (or five) compare the recorded and current time in a separate thread.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question