finding the difference between 2 times

i am making a progam that will take the time that the program starts...
intTimeStart = Time

i then take the time the program ends...
intTimeEnd = Time

what is the easiest way to find the time elapsed?

i know the long way around it but im sure there is an easier way...
thank you in advance for any help.

Comments

  • : i am making a progam that will take the time that the program starts...
    : intTimeStart = Time
    :
    : i then take the time the program ends...
    : intTimeEnd = Time
    :
    : what is the easiest way to find the time elapsed?
    :
    : i know the long way around it but im sure there is an easier way...
    : thank you in advance for any help.
    :

    [code]Dim x As Long
    x = DateDiff("s", intStartTime, intEndTime)
    [/code]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion