Archived

This forum has been archived. Please start a new discussion on GitHub.

Monotonic Timer in ICE for .NET

kwaclaw
kwaclaw Oshawa, Canada
I was just checking how to build a managed version of ICE for .NET, and looked through the places in the code that were conditional on the MANAGED macro.

The managed code in Time.cs uses DateTime.Now.Ticks, whereas the unmanaged code uses QueryPeformanceCounter.

Just wanted to point out that System.Diagnostics.Stopwatch would be the managed equivalent to QueryPeformanceCounter:
Stopwatch Class (System.Diagnostics)

Karl

Comments

  • Hi Karl,

    we'll have a look at whether this would be a suitable replacement.

    Thanks,

    Michi.
  • Thanks for that Karl. This change will be includeded in Ice 3.3.

    Cheers,

    Michi.