Ejemplo n.º 1
0
 static public void EndEvent(MyMemoryEvent ev)
 {
     if (m_stack.Count > 0)
     {
         MyMemoryEvent e = m_stack.Peek();
         ev.Name      = e.Name;
         ev.Id        = e.Id;
         ev.StartTime = e.StartTime;
         ev.EndTime   = DateTime.Now;
         m_events.Add(ev);
         m_stack.Pop();
     }
 }
Ejemplo n.º 2
0
        static public void StartEvent()
        {
            MyMemoryEvent ev = new MyMemoryEvent();

            if (m_consoleLogSTART.Count > 0)
            {
                ev.Name      = m_consoleLogSTART[m_consoleLogSTART.Count - 1];
                ev.Id        = IdCounter++;
                ev.StartTime = DateTime.Now;
                m_consoleLogSTART.Clear();
                m_stack.Push(ev);
            }
        }