How to calculate diff between times in milliseconds
<p>what i need to do is:</p>

<ol>
<li><p>Check time at 1st point</p></li>
<li><p>Check time at 2nd point   </p></li>
<li><p>Calculate if the difference between times
is less then a timeout i have (0.5 seconds)</p></li>
</ol>

<p>tried this : </p>

<pre><code>&gt;&gt;&gt; from time import time
&gt;&gt;&gt; a=time
&gt;&gt;&gt; b=time
&gt;&gt;&gt; a-b
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
TypeError: unsupported operand type(s) for -: 'builtin_function_or_method' and   builtin_function_or_method'
</code></pre>

<p>but im getting an error.</p>

<p>Please advice.  </p>
