Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time to Process

Status
Not open for further replies.
Jun 17, 2004
73
US
Is there a function or object that tells you the time it took the application to execute?


I have a application that is updating data and moving files and need to know the total time to exectue.



/cry
/help

[viking2]
LVL 60 ROGUE
 
Code:
long ticksStart = DateTime.Today.Ticks;
  //
  //
  // Run the application
  //
  //
long ticksEnd = DateTime.Today.Ticks;
long ticksElapsed = ticksEnd - ticksStart;
Regarding "Ticks" ---
Help file said:
The value of this property represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top