Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Chrono meter

Hello . I am just doing an application with a chrono meter . The problem is i come across 2 ways but i dont know which is correct .

First is here : https://docs.google.com/file/d/0B3rLgkFC...edit?pli=1

Second is here :
Code
Dim comp As Date = DateTime.Now  
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim comprefre As Date = DateTime.Now
Label2.Text = "Computer Opened Total For : " + (comprefre - comp).ToString

The problem is if i use them in 2 different timers they dont give the same result( one will give ms . the problem is with the seconds .... ) . Which is the correct ???


Common guys . Why you dont answere ???


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by R҉eece҉Oct 5, 2014 10:20 AM 14 395 Oct 5, 2014 10:20 AM
Last Post: ObscureCoder
[.NET] by SIM-1456245Jul 26, 2014 11:10 AM 9 598 Jul 26, 2014 11:10 AM
Last Post: SIM-1456245
[.NET] by EbonyJan 29, 2014 04:20 AM 8 484 Jan 29, 2014 04:20 AM
Last Post: ecaep42