Ticks truncated on the device?

Discussion in 'Questions (Windows Mobile)' started by willisgt, Dec 11, 2007.

  1. willisgt

    willisgt Active Member Licensed User

    I've been trying to improve the performance of one of my programs, so I dropped in a few lines of code to see how many ticks were elapsing from one segment of code to the next.

    Running the program on the desktop, I get values for ticks / cTicksPerSecond of something like '0.0624896'.

    Running on the device, I get whole numbers only.

    If I just output the raw ticks value (rather than divide by cTicksPerSecond), the last several digits are always zero.

    The device is an HTC TyTn II running WM6. This also happens on an AT&T 8125 running WM5 (which yes, I know, is also an HTC unit, but I don't know the HTC model number.) Oh, and I'm using Basic4PPC v5.8.

    What gives?


  2. agraham

    agraham Expert Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice