/*START*/
var start = new Date();

>>332

/*STOP*/
var end = new Date();
var span = (end - start) / 1000;
alert(span + "ms");

とか?