Monotonic Timer in ICE for .NET

kwaclawkwaclaw Oshawa, CanadaMember Karl WaclawekOrganization: Personal
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

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Hi Karl,

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

    Thanks,

    Michi.
  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    Thanks for that Karl. This change will be includeded in Ice 3.3.

    Cheers,

    Michi.
Sign In or Register to comment.