Exemplo n.º 1
0
 public void Initialize(double duration)
 {
     this.m_Duration = duration;
     this.m_Start    = Engine.m_dTicks;
     if (!Engine.m_SetTicks)
     {
         Engine.QueryPerformanceCounter(ref Engine.m_QPC);
         this.m_Start      = Engine.m_QPC;
         this.m_Start     /= Engine.m_QPF;
         Engine.m_Ticks    = (int)(this.m_Start + 0.5);
         Engine.m_dTicks   = this.m_Start;
         Engine.m_SetTicks = true;
     }
     this.m_rSeconds = 1.0 / (duration * 1000.0);
 }