Chrome developer tools

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Chrome developer tools

Post by social_experiment »

The Developer Tools in Chrome gives the time and size of my script. If i wanted to test how much time it took 1000 rows to be displayed, will the results from these tools be worth anything? Are there other types of software that can do this, measuring script execution time, etc?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Chrome developer tools

Post by Jonah Bron »

Code: Select all

$start_moment = microtime(true);
// do something that takes a long time
$execution_time = microtime(true) - $start_moment;
Does this good enough? :)
Post Reply