Why not get assign the microtime at the start of a script to a temporary variable, then subtract it from the microtime at the end of the script? It’s much cleaner.
An avid fan of business, education, technology and finance. I lead a lean, highly focussed and capable team of Java Back End developers and Front End developers through a maze of complex software wizardry to fulfill the web maintenance needs of a large chemical manufacturer. As per Myers-Briggs Personality Types, I am an ESTJ. I pride in a project completed on time and according to plan. My hobbies include all kinds of technology, anything that I can taste and anything that goes fast or flies in the air. I like to read business books and comics in my spare time.
That’s actually a pretty bad way to do it. ereg? Useless. Check out timer_start and timer_stop in WP.
Why not get assign the microtime at the start of a script to a temporary variable, then subtract it from the microtime at the end of the script? It’s much cleaner.