C
cj
Dim starttime As DateTime
Dim finishtime As DateTime
Dim elapsed As TimeSpan
starttime=now()
some processing
finishtime=now()
elapsedtime=finishtime.subtract(starttime)
messagebox.show(???????????????)
what would I show in the message box if I wanted a message like 1:37 to
indicate it took 1 hr and 37 minutes to run some processing.
I've displayed minutes before but this event could be between a minute
and a few hours.
I guess I could do elapsed.hours & ":" & elapsed.minutes
Is that the best way?
Dim finishtime As DateTime
Dim elapsed As TimeSpan
starttime=now()
some processing
finishtime=now()
elapsedtime=finishtime.subtract(starttime)
messagebox.show(???????????????)
what would I show in the message box if I wanted a message like 1:37 to
indicate it took 1 hr and 37 minutes to run some processing.
I've displayed minutes before but this event could be between a minute
and a few hours.
I guess I could do elapsed.hours & ":" & elapsed.minutes
Is that the best way?