esrille / escudo

The Escudo Web Browser
Apache License 2.0
68 stars 13 forks source link

Add clockGettime to support realtime clock on darwin #30

Closed Constellation closed 11 years ago

Constellation commented 11 years ago

(configure.ac, Makefile.am): Remove librt link on darwin (clockGettime): Add (recordTime, getTick): Change clock_gettime to clockGettime

This pull request depends on #26.

Constellation commented 11 years ago

Or because we can use C++11, I suggest using chrono to get highres time.

ShikiOkasaka commented 11 years ago

Thanks for the suggestion. I agree we should switch over to chrono:

http://en.cppreference.com/w/cpp/chrono/high_resolution_clock/now

Constellation commented 11 years ago

Yeah, so I close this issue. Later I'll create new pull request.