Question d’entretien chez Active Network

How to caculate an javascript method's processing time?