{"action":"created","issue":{"url":"https://api.github.com/repos/luceracloud/seqtest/issues/11","repository_url":"https://api.github.com/repos/luceracloud/seqtest","labels_url":"https://api.github.com/repos/luceracloud/seqtest/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/luceracloud/seqtest/issues/11/comments","events_url":"https://api.github.com/repos/luceracloud/seqtest/issues/11/events","html_url":"https://github.com/luceracloud/seqtest/issues/11","id":135180684,"number":11,"title":"CLOCK_MONOTONIC_RAW is linux-specific","user":{"login":"opsec","id":6597780,"avatar_url":"https://avatars.githubusercontent.com/u/6597780?v=3","gravatar_id":"","url":"https://api.github.com/users/opsec","html_url":"https://github.com/opsec","followers_url":"https://api.github.com/users/opsec/followers","following_url":"https://api.github.com/users/opsec/following{/other_user}","gists_url":"https://api.github.com/users/opsec/gists{/gist_id}","starred_url":"https://api.github.com/users/opsec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opsec/subscriptions","organizations_url":"https://api.github.com/users/opsec/orgs","repos_url":"https://api.github.com/users/opsec/repos","events_url":"https://api.github.com/users/opsec/events{/privacy}","received_events_url":"https://api.github.com/users/opsec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-21T09:08:09Z","updated_at":"2016-02-22T16:35:38Z","closed_at":null,"body":"So:\r\n\r\n``\r\n--- seqtest.c.orig      2016-02-21 09:06:35 UTC\r\n+++ seqtest.c\r\n@@ -78,7 +78,11 @@ uint64_t\r\n gethrtime(void)\r\n {\r\n        struct timespec ts;\r\n+#if defined(__FreeBSD__)\r\n+       if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {\r\n+#else\r\n        if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts) != 0) {\r\n+#endif\r\n                perror(\"clock_gettime\");\r\n                exit(1);\r\n        }\r\n"},"comment":{"url":"https://api.github.com/repos/luceracloud/seqtest/issues/comments/187256263","html_url":"https://github.com/luceracloud/seqtest/issues/11#issuecomment-187256263","issue_url":"https://api.github.com/repos/luceracloud/seqtest/issues/11","id":187256263,"user":{"login":"gdamore","id":1295229,"avatar_url":"https://avatars.githubusercontent.com/u/1295229?v=3","gravatar_id":"","url":"https://api.github.com/users/gdamore","html_url":"https://github.com/gdamore","followers_url":"https://api.github.com/users/gdamore/followers","following_url":"https://api.github.com/users/gdamore/following{/other_user}","gists_url":"https://api.github.com/users/gdamore/gists{/gist_id}","starred_url":"https://api.github.com/users/gdamore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdamore/subscriptions","organizations_url":"https://api.github.com/users/gdamore/orgs","repos_url":"https://api.github.com/users/gdamore/repos","events_url":"https://api.github.com/users/gdamore/events{/privacy}","received_events_url":"https://api.github.com/users/gdamore/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T16:35:38Z","updated_at":"2016-02-22T16:35:38Z","body":"I need to fix that, but it should be driven out of CMake definitions or checks for the presence of that define.  (E.g. #ifdef CLOCK_MONOTONIC_RAW ... #elif defined(CLOCK_MONOTONIC) ... #else #error) \r\n\r\nIts a real shame that timekeeping is one of the less portable aspects of modern systems."}}