{"action":"created","comment":{"url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/comments/30476668","id":30476668,"diff_hunk":"@@ -312,6 +312,50 @@ else\n     static assert(0, \"What are the clock types supported by this system?\");\n }\n \n+// private, used to translate clock type to proper argument to clock_xxx\n+// functions on posix systems\n+version(Posix)\n+{\n+    private auto _posixClock(ClockType clockType)\n+    {\n+        version(linux)\n+        {\n+            import core.sys.linux.time;\n+            with(ClockType) final switch(clockType)\n+            {\n+            case bootTime: return CLOCK_BOOTTIME;\n+            case coarse: return CLOCK_MONOTONIC_COARSE;\n+            case normal: return CLOCK_MONOTONIC;\n+            case precise: return CLOCK_MONOTONIC;\n+            case processCPUTime: return CLOCK_PROCESS_CPUTIME_ID;\n+            case raw: return CLOCK_MONOTONIC_RAW;\n+            case threadCPUTime: return CLOCK_THREAD_CPUTIME_ID;\n+            case second: assert(0);\n+            }\n+        }\n+        else version(FreeBSD)\n+        {\n+            with(ClockType) final switch(clockType)","path":"src/core/time.d","position":null,"original_position":27,"commit_id":"ca6bd126559c361ac05f110d5a751df7e05a45bf","original_commit_id":"0a274bc0f21d632c6706234b3743312596028642","user":{"login":"schveiguy","id":580778,"avatar_url":"https://avatars.githubusercontent.com/u/580778?v=3","gravatar_id":"","url":"https://api.github.com/users/schveiguy","html_url":"https://github.com/schveiguy","followers_url":"https://api.github.com/users/schveiguy/followers","following_url":"https://api.github.com/users/schveiguy/following{/other_user}","gists_url":"https://api.github.com/users/schveiguy/gists{/gist_id}","starred_url":"https://api.github.com/users/schveiguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schveiguy/subscriptions","organizations_url":"https://api.github.com/users/schveiguy/orgs","repos_url":"https://api.github.com/users/schveiguy/repos","events_url":"https://api.github.com/users/schveiguy/events{/privacy}","received_events_url":"https://api.github.com/users/schveiguy/received_events","type":"User","site_admin":false},"body":"Oops. Fixed.","created_at":"2015-05-18T00:20:15Z","updated_at":"2015-05-18T00:20:15Z","html_url":"https://github.com/D-Programming-Language/druntime/pull/1278#discussion_r30476668","pull_request_url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278","_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/comments/30476668"},"html":{"href":"https://github.com/D-Programming-Language/druntime/pull/1278#discussion_r30476668"},"pull_request":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278"}}},"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278","id":35525073,"html_url":"https://github.com/D-Programming-Language/druntime/pull/1278","diff_url":"https://github.com/D-Programming-Language/druntime/pull/1278.diff","patch_url":"https://github.com/D-Programming-Language/druntime/pull/1278.patch","issue_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1278","number":1278,"state":"open","locked":false,"title":"Some updates to MonoTime to better initialize the ticks per second","user":{"login":"schveiguy","id":580778,"avatar_url":"https://avatars.githubusercontent.com/u/580778?v=3","gravatar_id":"","url":"https://api.github.com/users/schveiguy","html_url":"https://github.com/schveiguy","followers_url":"https://api.github.com/users/schveiguy/followers","following_url":"https://api.github.com/users/schveiguy/following{/other_user}","gists_url":"https://api.github.com/users/schveiguy/gists{/gist_id}","starred_url":"https://api.github.com/users/schveiguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schveiguy/subscriptions","organizations_url":"https://api.github.com/users/schveiguy/orgs","repos_url":"https://api.github.com/users/schveiguy/repos","events_url":"https://api.github.com/users/schveiguy/events{/privacy}","received_events_url":"https://api.github.com/users/schveiguy/received_events","type":"User","site_admin":false},"body":"Also:\r\n- Factor out translation of ClockType enums to POSIX clock types as a parameter to clock_gettime, etc.\r\n- Remove reimplementation of getting MonoTime.ticks from GC code, since the initializer is now run before the gc initializer.\r\n- Factor out translation of clock type to clock type enum index.\r\n- Factor out traits lookup of enum name.","created_at":"2015-05-15T15:48:02Z","updated_at":"2015-05-18T00:20:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b4002ed811da62f58dff76b19f390b7232b91b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278/commits","review_comments_url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278/comments","review_comment_url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/comments{/number}","comments_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1278/comments","statuses_url":"https://api.github.com/repos/D-Programming-Language/druntime/statuses/ca6bd126559c361ac05f110d5a751df7e05a45bf","head":{"label":"schveiguy:staticinitmonotime","ref":"staticinitmonotime","sha":"ca6bd126559c361ac05f110d5a751df7e05a45bf","user":{"login":"schveiguy","id":580778,"avatar_url":"https://avatars.githubusercontent.com/u/580778?v=3","gravatar_id":"","url":"https://api.github.com/users/schveiguy","html_url":"https://github.com/schveiguy","followers_url":"https://api.github.com/users/schveiguy/followers","following_url":"https://api.github.com/users/schveiguy/following{/other_user}","gists_url":"https://api.github.com/users/schveiguy/gists{/gist_id}","starred_url":"https://api.github.com/users/schveiguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schveiguy/subscriptions","organizations_url":"https://api.github.com/users/schveiguy/orgs","repos_url":"https://api.github.com/users/schveiguy/repos","events_url":"https://api.github.com/users/schveiguy/events{/privacy}","received_events_url":"https://api.github.com/users/schveiguy/received_events","type":"User","site_admin":false},"repo":{"id":1356644,"name":"druntime","full_name":"schveiguy/druntime","owner":{"login":"schveiguy","id":580778,"avatar_url":"https://avatars.githubusercontent.com/u/580778?v=3","gravatar_id":"","url":"https://api.github.com/users/schveiguy","html_url":"https://github.com/schveiguy","followers_url":"https://api.github.com/users/schveiguy/followers","following_url":"https://api.github.com/users/schveiguy/following{/other_user}","gists_url":"https://api.github.com/users/schveiguy/gists{/gist_id}","starred_url":"https://api.github.com/users/schveiguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schveiguy/subscriptions","organizations_url":"https://api.github.com/users/schveiguy/orgs","repos_url":"https://api.github.com/users/schveiguy/repos","events_url":"https://api.github.com/users/schveiguy/events{/privacy}","received_events_url":"https://api.github.com/users/schveiguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schveiguy/druntime","description":"Low level runtime library for the D programming language","fork":true,"url":"https://api.github.com/repos/schveiguy/druntime","forks_url":"https://api.github.com/repos/schveiguy/druntime/forks","keys_url":"https://api.github.com/repos/schveiguy/druntime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schveiguy/druntime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schveiguy/druntime/teams","hooks_url":"https://api.github.com/repos/schveiguy/druntime/hooks","issue_events_url":"https://api.github.com/repos/schveiguy/druntime/issues/events{/number}","events_url":"https://api.github.com/repos/schveiguy/druntime/events","assignees_url":"https://api.github.com/repos/schveiguy/druntime/assignees{/user}","branches_url":"https://api.github.com/repos/schveiguy/druntime/branches{/branch}","tags_url":"https://api.github.com/repos/schveiguy/druntime/tags","blobs_url":"https://api.github.com/repos/schveiguy/druntime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schveiguy/druntime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schveiguy/druntime/git/refs{/sha}","trees_url":"https://api.github.com/repos/schveiguy/druntime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schveiguy/druntime/statuses/{sha}","languages_url":"https://api.github.com/repos/schveiguy/druntime/languages","stargazers_url":"https://api.github.com/repos/schveiguy/druntime/stargazers","contributors_url":"https://api.github.com/repos/schveiguy/druntime/contributors","subscribers_url":"https://api.github.com/repos/schveiguy/druntime/subscribers","subscription_url":"https://api.github.com/repos/schveiguy/druntime/subscription","commits_url":"https://api.github.com/repos/schveiguy/druntime/commits{/sha}","git_commits_url":"https://api.github.com/repos/schveiguy/druntime/git/commits{/sha}","comments_url":"https://api.github.com/repos/schveiguy/druntime/comments{/number}","issue_comment_url":"https://api.github.com/repos/schveiguy/druntime/issues/comments{/number}","contents_url":"https://api.github.com/repos/schveiguy/druntime/contents/{+path}","compare_url":"https://api.github.com/repos/schveiguy/druntime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schveiguy/druntime/merges","archive_url":"https://api.github.com/repos/schveiguy/druntime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schveiguy/druntime/downloads","issues_url":"https://api.github.com/repos/schveiguy/druntime/issues{/number}","pulls_url":"https://api.github.com/repos/schveiguy/druntime/pulls{/number}","milestones_url":"https://api.github.com/repos/schveiguy/druntime/milestones{/number}","notifications_url":"https://api.github.com/repos/schveiguy/druntime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schveiguy/druntime/labels{/name}","releases_url":"https://api.github.com/repos/schveiguy/druntime/releases{/id}","created_at":"2011-02-11T21:03:49Z","updated_at":"2015-02-10T17:20:37Z","pushed_at":"2015-05-18T00:19:56Z","git_url":"git://github.com/schveiguy/druntime.git","ssh_url":"git@github.com:schveiguy/druntime.git","clone_url":"https://github.com/schveiguy/druntime.git","svn_url":"https://github.com/schveiguy/druntime","homepage":"d-programming-language.org","size":8141,"stargazers_count":1,"watchers_count":1,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"D-Programming-Language:master","ref":"master","sha":"e66f03494a13c7ce13bbe4c260ce689682af865e","user":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"repo":{"id":1257087,"name":"druntime","full_name":"D-Programming-Language/druntime","owner":{"login":"D-Programming-Language","id":565913,"avatar_url":"https://avatars.githubusercontent.com/u/565913?v=3","gravatar_id":"","url":"https://api.github.com/users/D-Programming-Language","html_url":"https://github.com/D-Programming-Language","followers_url":"https://api.github.com/users/D-Programming-Language/followers","following_url":"https://api.github.com/users/D-Programming-Language/following{/other_user}","gists_url":"https://api.github.com/users/D-Programming-Language/gists{/gist_id}","starred_url":"https://api.github.com/users/D-Programming-Language/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D-Programming-Language/subscriptions","organizations_url":"https://api.github.com/users/D-Programming-Language/orgs","repos_url":"https://api.github.com/users/D-Programming-Language/repos","events_url":"https://api.github.com/users/D-Programming-Language/events{/privacy}","received_events_url":"https://api.github.com/users/D-Programming-Language/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/D-Programming-Language/druntime","description":"Low level runtime library for the D programming language","fork":false,"url":"https://api.github.com/repos/D-Programming-Language/druntime","forks_url":"https://api.github.com/repos/D-Programming-Language/druntime/forks","keys_url":"https://api.github.com/repos/D-Programming-Language/druntime/keys{/key_id}","collaborators_url":"https://api.github.com/repos/D-Programming-Language/druntime/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/D-Programming-Language/druntime/teams","hooks_url":"https://api.github.com/repos/D-Programming-Language/druntime/hooks","issue_events_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/events{/number}","events_url":"https://api.github.com/repos/D-Programming-Language/druntime/events","assignees_url":"https://api.github.com/repos/D-Programming-Language/druntime/assignees{/user}","branches_url":"https://api.github.com/repos/D-Programming-Language/druntime/branches{/branch}","tags_url":"https://api.github.com/repos/D-Programming-Language/druntime/tags","blobs_url":"https://api.github.com/repos/D-Programming-Language/druntime/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/D-Programming-Language/druntime/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/D-Programming-Language/druntime/git/refs{/sha}","trees_url":"https://api.github.com/repos/D-Programming-Language/druntime/git/trees{/sha}","statuses_url":"https://api.github.com/repos/D-Programming-Language/druntime/statuses/{sha}","languages_url":"https://api.github.com/repos/D-Programming-Language/druntime/languages","stargazers_url":"https://api.github.com/repos/D-Programming-Language/druntime/stargazers","contributors_url":"https://api.github.com/repos/D-Programming-Language/druntime/contributors","subscribers_url":"https://api.github.com/repos/D-Programming-Language/druntime/subscribers","subscription_url":"https://api.github.com/repos/D-Programming-Language/druntime/subscription","commits_url":"https://api.github.com/repos/D-Programming-Language/druntime/commits{/sha}","git_commits_url":"https://api.github.com/repos/D-Programming-Language/druntime/git/commits{/sha}","comments_url":"https://api.github.com/repos/D-Programming-Language/druntime/comments{/number}","issue_comment_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/comments{/number}","contents_url":"https://api.github.com/repos/D-Programming-Language/druntime/contents/{+path}","compare_url":"https://api.github.com/repos/D-Programming-Language/druntime/compare/{base}...{head}","merges_url":"https://api.github.com/repos/D-Programming-Language/druntime/merges","archive_url":"https://api.github.com/repos/D-Programming-Language/druntime/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/D-Programming-Language/druntime/downloads","issues_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues{/number}","pulls_url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls{/number}","milestones_url":"https://api.github.com/repos/D-Programming-Language/druntime/milestones{/number}","notifications_url":"https://api.github.com/repos/D-Programming-Language/druntime/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/D-Programming-Language/druntime/labels{/name}","releases_url":"https://api.github.com/repos/D-Programming-Language/druntime/releases{/id}","created_at":"2011-01-15T07:01:38Z","updated_at":"2015-05-17T23:27:43Z","pushed_at":"2015-05-18T00:19:56Z","git_url":"git://github.com/D-Programming-Language/druntime.git","ssh_url":"git@github.com:D-Programming-Language/druntime.git","clone_url":"https://github.com/D-Programming-Language/druntime.git","svn_url":"https://github.com/D-Programming-Language/druntime","homepage":"dlang.org","size":20842,"stargazers_count":367,"watchers_count":367,"language":"D","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":240,"mirror_url":null,"open_issues_count":27,"forks":240,"open_issues":27,"watchers":367,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278"},"html":{"href":"https://github.com/D-Programming-Language/druntime/pull/1278"},"issue":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1278"},"comments":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1278/comments"},"review_comments":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278/comments"},"review_comment":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1278/commits"},"statuses":{"href":"https://api.github.com/repos/D-Programming-Language/druntime/statuses/ca6bd126559c361ac05f110d5a751df7e05a45bf"}}}}