Beispiel #1
0
        public CSEngine()
        {
            // Fast timer for js calls
            m_jsTimer.Tick    += jsTick;
            m_jsTimer.Interval = new TimeSpan(0, 0, 0, 0, 2); // Every 2 milliseconds
            m_jsTimer.Start();

            // Timer for general C# operations
            m_csTimer.Tick    += csTick;
            m_csTimer.Interval = new TimeSpan(0, 0, 0, 0, 50); // Every 50 milliseconds
            m_csTimer.Start();

            m_csWeb = new CSWeb();
        }
Beispiel #2
0
        public CSEngine()
        {
            // Fast timer for js calls
            m_jsTimer.Tick += jsTick;
            m_jsTimer.Interval = new TimeSpan(0, 0, 0, 0, 2); // Every 2 milliseconds
            m_jsTimer.Start();

            // Timer for general C# operations
            m_csTimer.Tick += csTick;
            m_csTimer.Interval = new TimeSpan(0, 0, 0, 0, 50); // Every 50 milliseconds
            m_csTimer.Start();

            m_csWeb = new CSWeb();
        }