demo: Stop using clock() directly
demo: Stop using clock() directly

clock() has bad precision on Windows; to fix this, first we now use our
own timestamp() function that returns time as a double in seconds. This
will make it easier to implement a better timer on Windows.

zeux/meshoptimizer,zeux/meshoptimizer,zeux/meshoptimizer