Merge: Revamp Clock to return float values for easier memory management
authorJean Privat <jean@pryen.org>
Tue, 24 May 2016 13:16:47 +0000 (09:16 -0400)
committerJean Privat <jean@pryen.org>
Tue, 24 May 2016 13:16:47 +0000 (09:16 -0400)
commit598bac1bff75f38595db5535b6626d7d0e5667c3
tree07e2fdbec8d74d1f51e240baf2c6716e47646708
parent125713e33e033916fe8c36435b91a2eb5f149eb7
parent33d835b8fc0f8ef9e0019938a87d2906383c3865
Merge: Revamp Clock to return float values for easier memory management

This PR updates the main services of `Clock` to return float values instead of malloced extern instances of `Timespec`. There is a precision loss, but it's sufficient for games and the likes, and a program needing higher precision can still use `Timespec` directly. Clients don't even have to worry about memory management anymore.

Pull-Request: #2117
Reviewed-by: Jean Privat <jean@pryen.org>