Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use the getTime() function
Message
De
08/12/2006 17:20:28
 
 
À
08/12/2006 17:14:29
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows 2000 SP4
Database:
MS SQL Server
Divers
Thread ID:
01176281
Message ID:
01176282
Vues:
10
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform