Exemplo n.º 1
0
		public static void Initialize()
		{
			m_NextDecayTime = DateTime.Now.Date + DecayHour;

			if ( m_NextDecayTime < DateTime.Now )
				m_NextDecayTime += TimeSpan.FromDays( 1.0 );

			m_Timer = new CollectionDecayTimer( m_NextDecayTime - DateTime.Now );
			m_Timer.Start();
		}
Exemplo n.º 2
0
        public static void Initialize()
        {
            m_NextDecayTime = DateTime.Now.Date + DecayHour;

            if (m_NextDecayTime < DateTime.Now)
            {
                m_NextDecayTime += TimeSpan.FromDays(1.0);
            }

            m_Timer = new CollectionDecayTimer(m_NextDecayTime - DateTime.Now);
            m_Timer.Start();
        }