C# XNA: How Do I get the Current Time in Milliseconds
4 replies to this topic
Members - Reputation: 410
Posted 25 March 2008 - 01:42 PM
For game programming purposes, DateTime.Now.Ticks should be of interest to you. (If you need miliseconds, just divide that number by 10000, if I'm not mistaking).
A single tick represents one hundred nanoseconds or one ten-millionth of a second. The value of this property represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight, January 1, 0001, which represents DateTime.MinValue.