{"action":"created","comment":{"url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/comments/238951286","pull_request_review_id":181615214,"id":238951286,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODk1MTI4Ng==","diff_hunk":"@@ -2,4 +2,9 @@ def run(s)\n     # Your code goes here\n end\n \n-puts run(ARGV[0])\n+\n+starting = Process.clock_gettime(Process::CLOCK_MONOTONIC)\n+answer = run(ARGV[0].lines)","path":"templates/template.rb","position":7,"original_position":7,"commit_id":"0b326ecf08d5b7d79d2bb0094fd05e56929b385c","original_commit_id":"eb6b10082dfd3967bbee9b6134e7c948b3e70ac6","user":{"login":"TPXP","id":7191841,"node_id":"MDQ6VXNlcjcxOTE4NDE=","avatar_url":"https://avatars2.githubusercontent.com/u/7191841?v=4","gravatar_id":"","url":"https://api.github.com/users/TPXP","html_url":"https://github.com/TPXP","followers_url":"https://api.github.com/users/TPXP/followers","following_url":"https://api.github.com/users/TPXP/following{/other_user}","gists_url":"https://api.github.com/users/TPXP/gists{/gist_id}","starred_url":"https://api.github.com/users/TPXP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TPXP/subscriptions","organizations_url":"https://api.github.com/users/TPXP/orgs","repos_url":"https://api.github.com/users/TPXP/repos","events_url":"https://api.github.com/users/TPXP/events{/privacy}","received_events_url":"https://api.github.com/users/TPXP/received_events","type":"User","site_admin":false},"body":"Most programs actually need this `.lines` call, so it's fine as well to put it here","created_at":"2018-12-05T07:12:28Z","updated_at":"2018-12-05T07:12:28Z","html_url":"https://github.com/badouralix/advent-of-code-2018/pull/38#discussion_r238951286","pull_request_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/comments/238951286"},"html":{"href":"https://github.com/badouralix/advent-of-code-2018/pull/38#discussion_r238951286"},"pull_request":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38"}},"in_reply_to_id":238633236},"pull_request":{"url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38","id":235623799,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NjIzNzk5","html_url":"https://github.com/badouralix/advent-of-code-2018/pull/38","diff_url":"https://github.com/badouralix/advent-of-code-2018/pull/38.diff","patch_url":"https://github.com/badouralix/advent-of-code-2018/pull/38.patch","issue_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/38","number":38,"state":"open","locked":false,"title":"[timing] return internal function timing","user":{"login":"lypnol","id":14986684,"node_id":"MDQ6VXNlcjE0OTg2Njg0","avatar_url":"https://avatars3.githubusercontent.com/u/14986684?v=4","gravatar_id":"","url":"https://api.github.com/users/lypnol","html_url":"https://github.com/lypnol","followers_url":"https://api.github.com/users/lypnol/followers","following_url":"https://api.github.com/users/lypnol/following{/other_user}","gists_url":"https://api.github.com/users/lypnol/gists{/gist_id}","starred_url":"https://api.github.com/users/lypnol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lypnol/subscriptions","organizations_url":"https://api.github.com/users/lypnol/orgs","repos_url":"https://api.github.com/users/lypnol/repos","events_url":"https://api.github.com/users/lypnol/events{/privacy}","received_events_url":"https://api.github.com/users/lypnol/received_events","type":"User","site_admin":false},"body":"internally calculate execution time and return it as a header to the answer. \r\n \r\n - [x] c\r\n - [x] c++\r\n - [x] go\r\n - [x] js\r\n - [x] rb\r\n - [x] rs\r\n - [ ] ~~python~~ (doesn't apply)\r\n\r\nit's backward compatible ","created_at":"2018-12-03T23:07:02Z","updated_at":"2018-12-05T07:12:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3bfe6112acf607bf8d3098784a6980314334eee","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38/commits","review_comments_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38/comments","review_comment_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/38/comments","statuses_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/statuses/0b326ecf08d5b7d79d2bb0094fd05e56929b385c","head":{"label":"badouralix:ayoub/fix-timing","ref":"ayoub/fix-timing","sha":"0b326ecf08d5b7d79d2bb0094fd05e56929b385c","user":{"login":"badouralix","id":19719047,"node_id":"MDQ6VXNlcjE5NzE5MDQ3","avatar_url":"https://avatars1.githubusercontent.com/u/19719047?v=4","gravatar_id":"","url":"https://api.github.com/users/badouralix","html_url":"https://github.com/badouralix","followers_url":"https://api.github.com/users/badouralix/followers","following_url":"https://api.github.com/users/badouralix/following{/other_user}","gists_url":"https://api.github.com/users/badouralix/gists{/gist_id}","starred_url":"https://api.github.com/users/badouralix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badouralix/subscriptions","organizations_url":"https://api.github.com/users/badouralix/orgs","repos_url":"https://api.github.com/users/badouralix/repos","events_url":"https://api.github.com/users/badouralix/events{/privacy}","received_events_url":"https://api.github.com/users/badouralix/received_events","type":"User","site_admin":false},"repo":{"id":159889906,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk4ODk5MDY=","name":"advent-of-code-2018","full_name":"badouralix/advent-of-code-2018","private":false,"owner":{"login":"badouralix","id":19719047,"node_id":"MDQ6VXNlcjE5NzE5MDQ3","avatar_url":"https://avatars1.githubusercontent.com/u/19719047?v=4","gravatar_id":"","url":"https://api.github.com/users/badouralix","html_url":"https://github.com/badouralix","followers_url":"https://api.github.com/users/badouralix/followers","following_url":"https://api.github.com/users/badouralix/following{/other_user}","gists_url":"https://api.github.com/users/badouralix/gists{/gist_id}","starred_url":"https://api.github.com/users/badouralix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badouralix/subscriptions","organizations_url":"https://api.github.com/users/badouralix/orgs","repos_url":"https://api.github.com/users/badouralix/repos","events_url":"https://api.github.com/users/badouralix/events{/privacy}","received_events_url":"https://api.github.com/users/badouralix/received_events","type":"User","site_admin":false},"html_url":"https://github.com/badouralix/advent-of-code-2018","description":"Advent of Code 2018","fork":false,"url":"https://api.github.com/repos/badouralix/advent-of-code-2018","forks_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/forks","keys_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/teams","hooks_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/hooks","issue_events_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/events{/number}","events_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/events","assignees_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/assignees{/user}","branches_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/branches{/branch}","tags_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/tags","blobs_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/languages","stargazers_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/stargazers","contributors_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/contributors","subscribers_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/subscribers","subscription_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/subscription","commits_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/contents/{+path}","compare_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/merges","archive_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/downloads","issues_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues{/number}","pulls_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/labels{/name}","releases_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/releases{/id}","deployments_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/deployments","created_at":"2018-11-30T23:33:31Z","updated_at":"2018-12-05T07:08:56Z","pushed_at":"2018-12-05T07:08:58Z","git_url":"git://github.com/badouralix/advent-of-code-2018.git","ssh_url":"git@github.com:badouralix/advent-of-code-2018.git","clone_url":"https://github.com/badouralix/advent-of-code-2018.git","svn_url":"https://github.com/badouralix/advent-of-code-2018","homepage":null,"size":687,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":6,"watchers":22,"default_branch":"master"}},"base":{"label":"badouralix:master","ref":"master","sha":"7b421f4e1e09ae12cff434c2298b7b78e612b71a","user":{"login":"badouralix","id":19719047,"node_id":"MDQ6VXNlcjE5NzE5MDQ3","avatar_url":"https://avatars1.githubusercontent.com/u/19719047?v=4","gravatar_id":"","url":"https://api.github.com/users/badouralix","html_url":"https://github.com/badouralix","followers_url":"https://api.github.com/users/badouralix/followers","following_url":"https://api.github.com/users/badouralix/following{/other_user}","gists_url":"https://api.github.com/users/badouralix/gists{/gist_id}","starred_url":"https://api.github.com/users/badouralix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badouralix/subscriptions","organizations_url":"https://api.github.com/users/badouralix/orgs","repos_url":"https://api.github.com/users/badouralix/repos","events_url":"https://api.github.com/users/badouralix/events{/privacy}","received_events_url":"https://api.github.com/users/badouralix/received_events","type":"User","site_admin":false},"repo":{"id":159889906,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk4ODk5MDY=","name":"advent-of-code-2018","full_name":"badouralix/advent-of-code-2018","private":false,"owner":{"login":"badouralix","id":19719047,"node_id":"MDQ6VXNlcjE5NzE5MDQ3","avatar_url":"https://avatars1.githubusercontent.com/u/19719047?v=4","gravatar_id":"","url":"https://api.github.com/users/badouralix","html_url":"https://github.com/badouralix","followers_url":"https://api.github.com/users/badouralix/followers","following_url":"https://api.github.com/users/badouralix/following{/other_user}","gists_url":"https://api.github.com/users/badouralix/gists{/gist_id}","starred_url":"https://api.github.com/users/badouralix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badouralix/subscriptions","organizations_url":"https://api.github.com/users/badouralix/orgs","repos_url":"https://api.github.com/users/badouralix/repos","events_url":"https://api.github.com/users/badouralix/events{/privacy}","received_events_url":"https://api.github.com/users/badouralix/received_events","type":"User","site_admin":false},"html_url":"https://github.com/badouralix/advent-of-code-2018","description":"Advent of Code 2018","fork":false,"url":"https://api.github.com/repos/badouralix/advent-of-code-2018","forks_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/forks","keys_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/teams","hooks_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/hooks","issue_events_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/events{/number}","events_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/events","assignees_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/assignees{/user}","branches_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/branches{/branch}","tags_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/tags","blobs_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/languages","stargazers_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/stargazers","contributors_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/contributors","subscribers_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/subscribers","subscription_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/subscription","commits_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/contents/{+path}","compare_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/merges","archive_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/downloads","issues_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues{/number}","pulls_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/labels{/name}","releases_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/releases{/id}","deployments_url":"https://api.github.com/repos/badouralix/advent-of-code-2018/deployments","created_at":"2018-11-30T23:33:31Z","updated_at":"2018-12-05T07:08:56Z","pushed_at":"2018-12-05T07:08:58Z","git_url":"git://github.com/badouralix/advent-of-code-2018.git","ssh_url":"git@github.com:badouralix/advent-of-code-2018.git","clone_url":"https://github.com/badouralix/advent-of-code-2018.git","svn_url":"https://github.com/badouralix/advent-of-code-2018","homepage":null,"size":687,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":3,"open_issues":6,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38"},"html":{"href":"https://github.com/badouralix/advent-of-code-2018/pull/38"},"issue":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/38"},"comments":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/badouralix/advent-of-code-2018/statuses/0b326ecf08d5b7d79d2bb0094fd05e56929b385c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"TPXP"}}