Opened 15 years ago

Closed 15 years ago

#764 closed defect (fixed)

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)

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 (2)

comment:1 Changed 15 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 15 years ago by bennylp

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

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.