static readonly DateTime utcStart = new DateTime(1970, 1, 1); public static ulong GetUTCStartMilliseconds() { TimeSpan ts = DateTime.UtcNow - utcStart; return (ulong)ts.TotalMilliseconds; }