Beispiel #1
0
        private long SysDeltaTime()
        {
            long now = SysUtil.TickToMilliSec(System.DateTime.Now.Ticks);
            long dt  = now - localSysTime;

            localSysTime = now;

            return(dt);
        }
Beispiel #2
0
 public void Start()
 {
     localSysTime  = SysUtil.TickToMilliSec(System.DateTime.Now.Ticks);
     frameTime     = localSysTime;
     lastFrameTime = frameTime - 30;
 }