php timers

  • _nYght
  • Novice
  • Novice
  • _nYght
  • Posts: 17

Post 3+ Months Ago

in asp i use something like this

Code: [ Select ]
dim startTime
startTime=Timer()
.
.  code
.
response.write Timer()-startTime
  1. dim startTime
  2. startTime=Timer()
  3. .
  4. .  code
  5. .
  6. response.write Timer()-startTime

and write the time elapsed to complete the script

how could i do same thing in php
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

RTFM:
http://uk.php.net/manual/en/function.time.php
http://uk.php.net/manual/en/function.microtime.php

use time()+microtime() to get a timer in milliseconds that will record for longer than a second.

Now please tell me you tried hard to find that info?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 68 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.