mixing up pygame.time() and time.time()
<p>For a minesweeper game I am using <code>time.time()</code>, I have imported both <code>time</code> and <code>pygame</code>. Here is my error report</p>

<pre><code>line 5, in save_score
    end = time.time()
AttributeError: module 'pygame.time' has no attribute 'time'
</code></pre>

<p>Here you have the proof that I did import both time and pygame:</p>

<pre><code>import sys, math, time
def save_score(name, size, mine):
    end = time.time()
~
from pygame import *
</code></pre>

<p>If anyone can explain how to avoid/ fix this error, it'd be much appreciated.</p>