Blake.NUI.WPF.Gestures.EngineHandlerBase.TimestampToDateTime C# (CSharp) Method

TimestampToDateTime() protected static method

Converts the timestamp provided in TouchEventArgs to a proper DateTime struct.
protected static TimestampToDateTime ( int timestamp ) : System.DateTime
timestamp int The timestamp, as received from e.TimeStamp.
return System.DateTime
    protected static DateTime TimestampToDateTime(int timestamp)
    {
      DateTime dt = DateTime.Now;
      dt.AddMilliseconds(Environment.TickCount - timestamp);
      return dt;
    }
  }