You can do something like this:
Dim dStart As DateTime
Dim dEnd As DateTime
Dim diff1 As System.TimeSpan
dStart = DateTime.Now
dEnd = DateTime.Now
diff1 = dEnd.Subtract(dStart)
MessageBox.Show("Elapsed Time = " & diff1.ToString)
>Hi all, i´m trying to calculate the elapsed time in a form between the beginning of the process to the end of the same process. I´d tried to use the function getTime() and when i run the form, there´s a stop message and it says: "An unhandled exception of type 'system.MissingMemberException' ocurred in microsoft.visualbasic.dll"
>
>So, how can I use that function or what can I do to calculate elapsed time. I usually work in Visual Fox but in this case I have to work in a VB.Net 2003 file. Please Help me.
>Thanks.