Windows clock is how I did it.

Also btw disable compression (change imagepng(...,...,9) to imagepng(...,...,0)) as I did for my test.

Howeaver microtime() or time() will do it.

Just a warning, it will depend greatly on the amount of ram and alot of other independant variables.

Also larger files are faster per mb, due to the memory allocation overheads in php.