Exemplo n.º 1
0
 public void ResetTimers()
 {
     timers = new NanoTimer[100];
     for (int n = 0; n < 100; n++)
     {
         timers[n]          = new NanoTimer(n.ToString());
         timers[n].duration = 0;
     }
 }
Exemplo n.º 2
0
 public void ResetTimers()
 {
   timers=new NanoTimer[100];
   for (int n = 0; n < 100; n++)
   {
     timers[n] = new NanoTimer(n.ToString());
     timers[n].duration = 0;
   }
 }
Exemplo n.º 3
0
 public NanoTimer Copy(NanoTimer t)
 {
     t.duration       = duration;
     t.ticks          = ticks;
     t.frequency      = frequency;
     t.nanosecPerTick = nanosecPerTick;
     t.timesum        = timesum;
     t.count          = count;
     return(t);
 }
Exemplo n.º 4
0
 public NanoTimer Copy(NanoTimer t)
 {
     t.duration = duration;
     t.ticks = ticks;
     t.frequency = frequency;
     t.nanosecPerTick = nanosecPerTick;
     t.timesum = timesum;
     t.count = count;
     return t;
 }
Exemplo n.º 5
0
  public NanoTimer Clone()
    {
      NanoTimer t=new NanoTimer(name);
      t.duration = duration;
      t.ticks =ticks ;
      t.frequency =frequency ;
      t.nanosecPerTick =nanosecPerTick ;
      t.timesum =timesum ;
      t.count = count;

      return t;
    }
Exemplo n.º 6
0
        public NanoTimer Clone()
        {
            NanoTimer t = new NanoTimer(name);

            t.duration       = duration;
            t.ticks          = ticks;
            t.frequency      = frequency;
            t.nanosecPerTick = nanosecPerTick;
            t.timesum        = timesum;
            t.count          = count;

            return(t);
        }
Exemplo n.º 7
0
 public World()
 {
     timers    = new NanoTimer[2];
     timers[0] = new NanoTimer("0");
     timers[1] = new NanoTimer("0");
 }
Exemplo n.º 8
0
 public World()
 {
     timers = new NanoTimer[2];
     timers[0] = new NanoTimer("0");
     timers[1] = new NanoTimer("0");
 }