Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use the getTime() function
Message
From
08/12/2006 17:20:28
 
 
To
08/12/2006 17:14:29
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01176281
Message ID:
01176282
Views:
9
You can do something like this:
        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"
>
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform