On Wed, Dec 3, 2014 at 5:29 AM, Ben Coman <btc@openinworld.com> wrote:
Eliot Miranda wrote:
One if these, which Ben Coman's recent changes above my 64-bit microsecond clock should have fixed is a spin loop of up to a second to synchronize the second and millisecond clocks.
Is this in the image or VM ? I didn't notice this.
In the image. See secondsWhenClockTicks in Pharo 2 and Pharo 3. Its also in Squeak :-(. It is called from DateAndTime class>>#startUp: via DateAndTime class>>#initializeOffsets. It throws away on average half a second on every launch. Looks like it is not used in Pharo 4. I found these either by profiling (clock sync; I can give you a change set
that allows profiling across a snapshot, quit, resume) or using the VM simulator (GC to check for finalization facilities).
That would be interesting to try.
cheers -ben
-- best, Eliot