Results 1 to 3 of 3

Thread: Time question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Location
    Coming to a keyboard near you.
    Posts
    79

    Question Time question

    I want to see how long a process took. I have a start time and an end time.

    I am getting it to work with the following code:

    Code:
    Format$(Now() - dStartTime, "HH:MM:SS")
    Will this give accurate times? The process may run for 80 hours and I need this to be precise to the second.

    Is there a better way? Should I look into Datediff for this?

    Thanks!
    Tenebrosity
    "But the plans were on display ..."
    "On display? I eventually had to go down to the cellar to find them, With a torch."
    "That's the display department. The lights had probably gone out."
    "So had the stairs."
    "But look, you found the notice didn't you?"
    "Yes," said Arthur, "yes I did. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign on the door saying Beware of the Leopard."

  2. #2

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    51
    dim start, finish, total

    start = timer

    'some process here

    finish = timer

    total = finish - start

    msgbox total

    -----
    This give you the time in seconds.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width