Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# timing functioning similar to Java System.currentTimeMillis()

Tags:

c#

I'm looking for a way to obtain timing functionality which uses primitives only and does not generate objects. This functionality will potentially be used hundreds of times per second therefore I'm looking for maximal performance. I would like millisecond granularity.

like image 580
deltanovember Avatar asked Jan 22 '23 15:01

deltanovember


1 Answers

Environment.TickCount

http://msdn.microsoft.com/en-us/library/system.environment.tickcount.aspx

like image 77
Derek Slager Avatar answered Apr 26 '23 15:04

Derek Slager