Changed time measurement method

~ Now uses Python (to avoid `date` problems on OSX) and measures the
time in ms