Blake.NUI.WPF.Gestures.EngineHandlerBase.TimestampToDateTime C# (CSharp) 메소드

TimestampToDateTime() 보호된 정적인 메소드

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.
리턴 System.DateTime
    protected static DateTime TimestampToDateTime(int timestamp)
    {
      DateTime dt = DateTime.Now;
      dt.AddMilliseconds(Environment.TickCount - timestamp);
      return dt;
    }
  }