Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8853645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:42:14+00:00 2026-06-14T13:42:14+00:00

I put $START_TIME = time(); at the beginning of my code, and $END_TIME =

  • 0

I put $START_TIME = time(); at the beginning of my code, and $END_TIME = time(); at the end of my code. then I did echo ($END_TIME - $START_TIME); and received a difference of ~ 4.

My question is, how inaccurate is this way of measuring parsing/processing time? and why?

edit: i took out the stupid part of my question 🙂 the rest of the question still stands!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:42:15+00:00Added an answer on June 14, 2026 at 1:42 pm

    time() is giving you the seconds since the “unix big bang”. What you want is microtime(true) (see documentation here) which gives you the microseconds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to calculate the time difference between 2 time and put the
I have put together an image scroller using jquery, like this function rotateImages(whichHolder, start)
Put value as a field makes sense only if this one represents some object's
I wanted to compress my pages so I put ob_start('ob_gzhandler'); at the beginning of
Basically I have the following code: import multiprocessing import time class MyProcess(multiprocessing.Process): def __init__(self,
I have two fields in my form where users select an input time (start_time,
I am creating a room booking system. For the sake of this question, I
I put my xml code inside a scrollview since I had more information on
Can anyone tell me why this code generates queue after starting the threads? Basically,
Warning, this is a bit recursive ;) I answered this question: Python:How can i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.