Skip to content

Instantly share code, notes, and snippets.

@MorganBorman
Created October 12, 2012 23:18
Show Gist options
  • Save MorganBorman/3882193 to your computer and use it in GitHub Desktop.
Save MorganBorman/3882193 to your computer and use it in GitHub Desktop.
a function to time the smooth interpolation function
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