Ticket #764 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Bug with milliseconds time resolution in WinCE/Windows Mobile targets (thanks Johan Lantz for the report)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.2
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description (last modified by bennylp) (diff)

We use GetLocalTime() to retrieve time in pj_gettimeofday(), but it turns out WinCE does not fill in the millisecond part of the SYSTEMTIME structure. It will initialize it to zero or some constant value.

The corresponding ticket for 1.0 branch is ticket #765

Change History

comment:1 Changed 10 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

In r2560:

  • use QueryPerformanceCounter?() (via pj_get_timestamp() API) to emulate the msec precision)
  • equip with periodic system time change check, since QPC won't be able to detect this
  • more strict tests in pjlib-test
Note: See TracTickets for help on using tickets.