vb.net 2003 sp4
I have a routine that takes a while to run sometimes.
its posts the time on a form as it runs.
It seems as if if the screen saver kicks in its throws off the time..
or could just be bad code..?
I cannot make
public sub Routine()
Dim startDT As DateTime = DateTime.Now
' update form
Me.Label17.Text = startDT
' finish it up
Dim endDT As DateTime = DateTime.Now
Dim elapsed As TimeSpan = endDT.Subtract(startDT)
Dim strEnd As String
strEnd = "Project Completed In: "
Label17.Text = strEnd & elapsed.Minutes & " mins " & elapsed.Seconds & " secs"