higgsjs / Higgs

Higgs JavaScript Virtual Machine
877 stars 62 forks source link

fix deprecations with newer compilers #212

Closed MartinNowak closed 7 years ago

MartinNowak commented 7 years ago
bFraley commented 7 years ago

@MartinNowak Thank you so much for tending to this! I'm hoping @maximecb can take a quick look and give her approval to merge.

maximecb commented 7 years ago

@MartinNowak Is it no longer possible to get a microsecond timer? If so, that's unfortunate, because a millisecond timer will likely not be precise enough :\

wilzbach commented 7 years ago

@MartinNowak Is it no longer possible to get a microsecond timer? If so, that's unfortunate, because a millisecond timer will likely not be precise enough :\

I think you can do total!"usecs" and even total!"hnsecs" as Duration is internally kept as hnsecs. @MartinNowak just removed your function because it was unused.

MartinNowak commented 7 years ago

Yes, MonoTime internally uses whatever high-precision timer is available. It's no longer possible to get a high-precision time since app start.