Frage im Vorstellungsgespräch bei Active Network

How to caculate an javascript method's processing time?