Dim dStart As DateTime Dim dEnd As DateTime Dim diff1 As System.TimeSpan dStart = DateTime.Now 'Do some stuff here.... 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"