Created
October 12, 2012 23:18
-
-
Save MorganBorman/3882193 to your computer and use it in GitHub Desktop.
a function to time the smooth interpolation function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import random | |
from noise_function import smerp | |
start_time = time.time() | |
for x in xrange(1000*1000): | |
smerp(random.uniform(0, 1), random.uniform(0, 0.5), random.uniform(0.51, 1)) | |
end_time = time.time() | |
print end_time-start_time, "seconds" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment