The following code in python "time.time" does nothing
<p>I am not yet familiar with Python, I've programmed this code from the documentation I read, but it does nothing, there is no output a all:</p>

<pre><code># -*- coding: latin_1 -*-
import time
from msvcrt import kbhit

Intervall = 1
mytime = int(time.time()) + Intervall
print (time.time ())
print (mytime)
while (kbhit() == False):
    if (int(time.time ()) &gt;= mytime):
# I want this to be done every second:    
        print (int(time.time ()), mytime)
        mytime = int(time.time ()) + Intervall
# I want other things to be done here (outside the if statement)       
</code></pre>

<p>If I comment out this line in the while loop:</p>

<pre><code>mytime = int(time.time ()) + Intervall
</code></pre>

<p>it does what the code says but of course the print statement is executed in every loop run, which is not what I want.</p>

<p>Any help is welcome
(using Python 3.4.1. under Win 7)</p>

<p>Thanks,</p>

<p>Martin.</p>