what i need to do is:
-
Check time at 1st point
-
Check time at 2nd point
-
Calculate if the difference between times
is less then a timeout i have (0.5 seconds)
tried this :
>>> from time import time
>>> a=time
>>> b=time
>>> a-b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and builtin_function_or_method'
but im getting an error.
Please advice.
This is actually very easy to do: