Log how long it takes to find an image?

Can I create a log that records how long it takes to find a particular image each time the same script repeats?

EG. I have a script that logs into our site every 2 minutes. I want a usable log to report how long logins take during the day.

See what I mean?



  • EggplantMattEggplantMatt ForumAdmin admin
    It's pretty simple; you'll need code like this:
    put now into starttime
    -- do some stuff
    log "The stuff took" && now-starttime
    or if you're timing something that will take a minute or more you might want to format the time:
    log "The stuff took" && formattedTime("%1M:%S", now - starttime)
Sign In or Register to comment.