corsis / clock

High-resolution clock functions: monotonic, realtime, cputime.
Other
58 stars 25 forks source link

Provide a fallback implementation on ghcjs #46

Closed UnkindPartition closed 5 years ago

UnkindPartition commented 7 years ago

Hi,

I use clock in tasty to measure the duration of each test.

However, this prevents tasty from building on ghcjs.

I have a pull request that replaces clock functions with Data.Time functions when compiled by ghcjs.

But I think that this logic really belongs to the clock package itself. This way all users of clock can benefit from a more portable lirbary.

If needed, I can try to prepare a PR.

What do you think?

CetinSert commented 7 years ago

Please send a PR!

CetinSert commented 6 years ago

@feuerbach still waiting on the PR.

UnkindPartition commented 6 years ago

Hey @cetinsert, I don't anticipate that I'll have the time to work on this in the nearest future, sorry.

CetinSert commented 5 years ago

Closing as nobody is available to work on this request.