tla-rs 0.1.0

Rust implementation of the IronFleet verified distributed systems framework
using System;
using System.Diagnostics;

namespace IronfleetCommon
{
  public class HiResTimer
  {
    private static Stopwatch _stopWatch = null;

    public static long Ticks
    {
      get
      {
        return _stopWatch.ElapsedTicks;
      }
    }
    public static void Initialize()
    {
      _stopWatch = Stopwatch.StartNew();
    }

    public static double TicksToMilliseconds(long ticks)
    {
      return ticks * 1000.0 / Stopwatch.Frequency;
    }
  }
}