{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments/64081072","id":64081072,"diff_hunk":"@@ -0,0 +1,41 @@\n+#include <catch.hpp>\n+#include <leatherman/util/timer.hpp>\n+\n+namespace leatherman { namespace util {\n+\n+SCENARIO(\"Using Timer\", \"[util]\") {\n+    SECTION(\"can instantiate\") {\n+        REQUIRE_NOTHROW(Timer());\n+    }\n+\n+    SECTION(\"can reset\") {\n+        Timer t {};\n+        REQUIRE_NOTHROW(t.reset());\n+    }\n+\n+    SECTION(\"can retrieve durations [s]\") {\n+        Timer t {};\n+        auto d1_s = t.elapsed_seconds();\n+        auto d2_s = t.elapsed_seconds();\n+\n+        REQUIRE(d1_s <= d2_s);\n+    }\n+\n+    SECTION(\"can retrieve durations [s]\") {\n+        Timer t {};\n+        auto d1_ms = t.elapsed_milliseconds();","path":"util/tests/timer.cc","position":26,"original_position":26,"commit_id":"3a0db23e39ab94ac00f78575ceb4dac0ad8a4f24","original_commit_id":"3a0db23e39ab94ac00f78575ceb4dac0ad8a4f24","user":{"login":"MikaelSmith","id":8162496,"avatar_url":"https://avatars.githubusercontent.com/u/8162496?v=3","gravatar_id":"","url":"https://api.github.com/users/MikaelSmith","html_url":"https://github.com/MikaelSmith","followers_url":"https://api.github.com/users/MikaelSmith/followers","following_url":"https://api.github.com/users/MikaelSmith/following{/other_user}","gists_url":"https://api.github.com/users/MikaelSmith/gists{/gist_id}","starred_url":"https://api.github.com/users/MikaelSmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikaelSmith/subscriptions","organizations_url":"https://api.github.com/users/MikaelSmith/orgs","repos_url":"https://api.github.com/users/MikaelSmith/repos","events_url":"https://api.github.com/users/MikaelSmith/events{/privacy}","received_events_url":"https://api.github.com/users/MikaelSmith/received_events","type":"User","site_admin":false},"body":"Should we sleep and then verify `d1_ms < d2_ms`? Seems like a more concrete test.","created_at":"2016-05-20T17:52:45Z","updated_at":"2016-05-20T17:52:45Z","html_url":"https://github.com/puppetlabs/leatherman/pull/181#discussion_r64081072","pull_request_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments/64081072"},"html":{"href":"https://github.com/puppetlabs/leatherman/pull/181#discussion_r64081072"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181","id":70888890,"html_url":"https://github.com/puppetlabs/leatherman/pull/181","diff_url":"https://github.com/puppetlabs/leatherman/pull/181.diff","patch_url":"https://github.com/puppetlabs/leatherman/pull/181.patch","issue_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/181","number":181,"state":"open","locked":false,"title":"(PCP-426) Add Util::Timer::elapsed_milliseconds and unit tests","user":{"login":"parisiale","id":7150922,"avatar_url":"https://avatars.githubusercontent.com/u/7150922?v=3","gravatar_id":"","url":"https://api.github.com/users/parisiale","html_url":"https://github.com/parisiale","followers_url":"https://api.github.com/users/parisiale/followers","following_url":"https://api.github.com/users/parisiale/following{/other_user}","gists_url":"https://api.github.com/users/parisiale/gists{/gist_id}","starred_url":"https://api.github.com/users/parisiale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parisiale/subscriptions","organizations_url":"https://api.github.com/users/parisiale/orgs","repos_url":"https://api.github.com/users/parisiale/repos","events_url":"https://api.github.com/users/parisiale/events{/privacy}","received_events_url":"https://api.github.com/users/parisiale/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-20T17:21:21Z","updated_at":"2016-05-20T17:52:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec7c124eaab285523b3b78bc573c8c3f49538127","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/181/comments","statuses_url":"https://api.github.com/repos/puppetlabs/leatherman/statuses/3a0db23e39ab94ac00f78575ceb4dac0ad8a4f24","head":{"label":"parisiale:PCP-426","ref":"PCP-426","sha":"3a0db23e39ab94ac00f78575ceb4dac0ad8a4f24","user":{"login":"parisiale","id":7150922,"avatar_url":"https://avatars.githubusercontent.com/u/7150922?v=3","gravatar_id":"","url":"https://api.github.com/users/parisiale","html_url":"https://github.com/parisiale","followers_url":"https://api.github.com/users/parisiale/followers","following_url":"https://api.github.com/users/parisiale/following{/other_user}","gists_url":"https://api.github.com/users/parisiale/gists{/gist_id}","starred_url":"https://api.github.com/users/parisiale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parisiale/subscriptions","organizations_url":"https://api.github.com/users/parisiale/orgs","repos_url":"https://api.github.com/users/parisiale/repos","events_url":"https://api.github.com/users/parisiale/events{/privacy}","received_events_url":"https://api.github.com/users/parisiale/received_events","type":"User","site_admin":false},"repo":{"id":32394531,"name":"leatherman","full_name":"parisiale/leatherman","owner":{"login":"parisiale","id":7150922,"avatar_url":"https://avatars.githubusercontent.com/u/7150922?v=3","gravatar_id":"","url":"https://api.github.com/users/parisiale","html_url":"https://github.com/parisiale","followers_url":"https://api.github.com/users/parisiale/followers","following_url":"https://api.github.com/users/parisiale/following{/other_user}","gists_url":"https://api.github.com/users/parisiale/gists{/gist_id}","starred_url":"https://api.github.com/users/parisiale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parisiale/subscriptions","organizations_url":"https://api.github.com/users/parisiale/orgs","repos_url":"https://api.github.com/users/parisiale/repos","events_url":"https://api.github.com/users/parisiale/events{/privacy}","received_events_url":"https://api.github.com/users/parisiale/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parisiale/leatherman","description":"A collection of C++ and CMake utility libraries.","fork":true,"url":"https://api.github.com/repos/parisiale/leatherman","forks_url":"https://api.github.com/repos/parisiale/leatherman/forks","keys_url":"https://api.github.com/repos/parisiale/leatherman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parisiale/leatherman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parisiale/leatherman/teams","hooks_url":"https://api.github.com/repos/parisiale/leatherman/hooks","issue_events_url":"https://api.github.com/repos/parisiale/leatherman/issues/events{/number}","events_url":"https://api.github.com/repos/parisiale/leatherman/events","assignees_url":"https://api.github.com/repos/parisiale/leatherman/assignees{/user}","branches_url":"https://api.github.com/repos/parisiale/leatherman/branches{/branch}","tags_url":"https://api.github.com/repos/parisiale/leatherman/tags","blobs_url":"https://api.github.com/repos/parisiale/leatherman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parisiale/leatherman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parisiale/leatherman/git/refs{/sha}","trees_url":"https://api.github.com/repos/parisiale/leatherman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parisiale/leatherman/statuses/{sha}","languages_url":"https://api.github.com/repos/parisiale/leatherman/languages","stargazers_url":"https://api.github.com/repos/parisiale/leatherman/stargazers","contributors_url":"https://api.github.com/repos/parisiale/leatherman/contributors","subscribers_url":"https://api.github.com/repos/parisiale/leatherman/subscribers","subscription_url":"https://api.github.com/repos/parisiale/leatherman/subscription","commits_url":"https://api.github.com/repos/parisiale/leatherman/commits{/sha}","git_commits_url":"https://api.github.com/repos/parisiale/leatherman/git/commits{/sha}","comments_url":"https://api.github.com/repos/parisiale/leatherman/comments{/number}","issue_comment_url":"https://api.github.com/repos/parisiale/leatherman/issues/comments{/number}","contents_url":"https://api.github.com/repos/parisiale/leatherman/contents/{+path}","compare_url":"https://api.github.com/repos/parisiale/leatherman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parisiale/leatherman/merges","archive_url":"https://api.github.com/repos/parisiale/leatherman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parisiale/leatherman/downloads","issues_url":"https://api.github.com/repos/parisiale/leatherman/issues{/number}","pulls_url":"https://api.github.com/repos/parisiale/leatherman/pulls{/number}","milestones_url":"https://api.github.com/repos/parisiale/leatherman/milestones{/number}","notifications_url":"https://api.github.com/repos/parisiale/leatherman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parisiale/leatherman/labels{/name}","releases_url":"https://api.github.com/repos/parisiale/leatherman/releases{/id}","deployments_url":"https://api.github.com/repos/parisiale/leatherman/deployments","created_at":"2015-03-17T13:20:11Z","updated_at":"2015-03-17T13:20:11Z","pushed_at":"2016-05-20T17:20:29Z","git_url":"git://github.com/parisiale/leatherman.git","ssh_url":"git@github.com:parisiale/leatherman.git","clone_url":"https://github.com/parisiale/leatherman.git","svn_url":"https://github.com/parisiale/leatherman","homepage":"","size":921,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"default_branch":"master"}},"base":{"label":"puppetlabs:master","ref":"master","sha":"3a86511124925c2fb7f9d2ca0c35e6fc43c8051b","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":31226286,"name":"leatherman","full_name":"puppetlabs/leatherman","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/leatherman","description":"A collection of C++ and CMake utility libraries.","fork":false,"url":"https://api.github.com/repos/puppetlabs/leatherman","forks_url":"https://api.github.com/repos/puppetlabs/leatherman/forks","keys_url":"https://api.github.com/repos/puppetlabs/leatherman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/leatherman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/leatherman/teams","hooks_url":"https://api.github.com/repos/puppetlabs/leatherman/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/leatherman/events","assignees_url":"https://api.github.com/repos/puppetlabs/leatherman/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/leatherman/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/leatherman/tags","blobs_url":"https://api.github.com/repos/puppetlabs/leatherman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/leatherman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/leatherman/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/leatherman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/leatherman/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/leatherman/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/leatherman/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/leatherman/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/leatherman/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/leatherman/subscription","commits_url":"https://api.github.com/repos/puppetlabs/leatherman/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/leatherman/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/leatherman/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/leatherman/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/leatherman/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/leatherman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/leatherman/merges","archive_url":"https://api.github.com/repos/puppetlabs/leatherman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/leatherman/downloads","issues_url":"https://api.github.com/repos/puppetlabs/leatherman/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/leatherman/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/leatherman/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/leatherman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/leatherman/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/leatherman/releases{/id}","deployments_url":"https://api.github.com/repos/puppetlabs/leatherman/deployments","created_at":"2015-02-23T19:50:46Z","updated_at":"2016-01-29T19:25:09Z","pushed_at":"2016-05-20T17:21:21Z","git_url":"git://github.com/puppetlabs/leatherman.git","ssh_url":"git@github.com:puppetlabs/leatherman.git","clone_url":"https://github.com/puppetlabs/leatherman.git","svn_url":"https://github.com/puppetlabs/leatherman","homepage":"","size":1023,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":4,"forks":26,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181"},"html":{"href":"https://github.com/puppetlabs/leatherman/pull/181"},"issue":{"href":"https://api.github.com/repos/puppetlabs/leatherman/issues/181"},"comments":{"href":"https://api.github.com/repos/puppetlabs/leatherman/issues/181/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/leatherman/pulls/181/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/leatherman/statuses/3a0db23e39ab94ac00f78575ceb4dac0ad8a4f24"}}}}
{"actor":{"display_login":"MikaelSmith"}}