how to calculate the upload time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omerbutt
    Contributor
    • Nov 2006
    • 638

    how to calculate the upload time

    hi i need to get the approx upload time for the file , has any one done that before ,google is giving hideous results.any usefull link might help me out
    regards,
    Omer Aslam.
  • TheServant
    Recognized Expert Top Contributor
    • Feb 2008
    • 1168

    #2
    Hi Omar,
    Have you looked at microtime()?

    Here's a random article of how you can use it in measuring code execution time:

    Comment

    • omerbutt
      Contributor
      • Nov 2006
      • 638

      #3
      hi TheServant,
      thanks for the reply
      i looked into these links bu i am trying to calculate the time for the upload before uploading the file
      the client has required that if a file takes more than 5 mins then it should time out
      , now i was looking for a way to get the upload time before uploading or saving the file . where as what this solution provides is the time to check the execution time for a specific page or script
      regards,
      Omer Aslam

      Comment

      • TheServant
        Recognized Expert Top Contributor
        • Feb 2008
        • 1168

        #4
        Still a little unclear...
        a way to get the upload time before uploading or saving the file
        I think that the upload will depend on server/user traffic, so this would a be a very big estimate.
        Your main goal would be to determine current upload speed when requested.

        I am sorry, but I really must get to bed, but I found some pages which you may not have seen:
        Open Source Speed Test Features Upload and download bandwidth tests Interactive user experience Very customizable Saves results in a database Restrict to particular networks / IP Addresses Customizable look Customizable maximum file sizes Sample Speedtest Example test here Source Available in the Open Source Speedtest Github Repository Download speedtest-1.2.zip Open Source Speed Test Version 1.2 […]

        Comment

        • omerbutt
          Contributor
          • Nov 2006
          • 638

          #5
          Thanks Brother
          sure you go and rest , thanks for the help though, i will be be reading these articles and would reply sooner
          reagrds,
          Omer Aslam

          Comment

          Working...