pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

Pharo nanoseconds or clock ticks

KO
Kasper Osterbye
Mon, Sep 5, 2022 6:30 AM

Cheers

I am looking for a way to get to the nanosecond or clock ticks of my computer as I want to do some rather low level performance measurements.
I have not been able to find it.

I am on macos.

Is it already in the image, or is there a library I can to load?

Best,

Kasper

Cheers I am looking for a way to get to the nanosecond or clock ticks of my computer as I want to do some rather low level performance measurements. I have not been able to find it. I am on macos. Is it already in the image, or is there a library I can to load? Best, Kasper
GP
Guillermo Polito
Tue, Sep 13, 2022 11:33 AM

Hi Kasper,

There is Smalltalk highResClock that should be what you’re looking for.

It's still not available in ARM64 builds, we need to define it using some handwritten assembly.
There is an open issue for that https://github.com/pharo-project/pharo/issues/11609

G

El 5 sept 2022, a las 8:30, Kasper Osterbye kasper.osterbye@gmail.com escribió:

Cheers

I am looking for a way to get to the nanosecond or clock ticks of my computer as I want to do some rather low level performance measurements.
I have not been able to find it.

I am on macos.

Is it already in the image, or is there a library I can to load?

Best,

Kasper

Hi Kasper, There is `Smalltalk highResClock` that should be what you’re looking for. It's still not available in ARM64 builds, we need to define it using some handwritten assembly. There is an open issue for that https://github.com/pharo-project/pharo/issues/11609 G > El 5 sept 2022, a las 8:30, Kasper Osterbye <kasper.osterbye@gmail.com> escribió: > > Cheers > > I am looking for a way to get to the nanosecond or clock ticks of my computer as I want to do some rather low level performance measurements. > I have not been able to find it. > > I am on macos. > > Is it already in the image, or is there a library I can to load? > > Best, > > Kasper
KO
Kasper Osterbye
Tue, Sep 13, 2022 1:18 PM

Gracias! Just what I was looking for indeed.

One of the few times I lucked out on my intel mac…

Best,

Kasper

On 13 Sep 2022, at 13.33, Guillermo Polito guillermopolito@gmail.com wrote:

Hi Kasper,

There is Smalltalk highResClock that should be what you’re looking for.

It's still not available in ARM64 builds, we need to define it using some handwritten assembly.
There is an open issue for that https://github.com/pharo-project/pharo/issues/11609

G

El 5 sept 2022, a las 8:30, Kasper Osterbye kasper.osterbye@gmail.com escribió:

Cheers

I am looking for a way to get to the nanosecond or clock ticks of my computer as I want to do some rather low level performance measurements.
I have not been able to find it.

I am on macos.

Is it already in the image, or is there a library I can to load?

Best,

Kasper

Gracias! Just what I was looking for indeed. One of the few times I lucked out on my intel mac… Best, Kasper > On 13 Sep 2022, at 13.33, Guillermo Polito <guillermopolito@gmail.com> wrote: > > Hi Kasper, > > There is `Smalltalk highResClock` that should be what you’re looking for. > > It's still not available in ARM64 builds, we need to define it using some handwritten assembly. > There is an open issue for that https://github.com/pharo-project/pharo/issues/11609 > > G > >> El 5 sept 2022, a las 8:30, Kasper Osterbye <kasper.osterbye@gmail.com> escribió: >> >> Cheers >> >> I am looking for a way to get to the nanosecond or clock ticks of my computer as I want to do some rather low level performance measurements. >> I have not been able to find it. >> >> I am on macos. >> >> Is it already in the image, or is there a library I can to load? >> >> Best, >> >> Kasper