{"action":"created","comment":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/comments/64747367","id":64747367,"diff_hunk":"@@ -264,9 +265,53 @@ execution time in seconds:\n     // do something ...\n     t = ((double)getTickCount() - t)/getTickFrequency();\n @endcode\n+@sa getTickCount, TickMeter\n  */\n CV_EXPORTS_W double getTickFrequency();\n \n+/** @brief a Class to measure passing time.\n+\n+The class computes passing time by counting the number of ticks per second. That is, the following code computes the\n+execution time in seconds:\n+@code\n+TickMeter tm;\n+tm.start();\n+// do something ...\n+tm.stop();\n+std::cout << tm.getTimeSec();\n+@endcode\n+@sa getTickCount, getTickFrequency\n+*/\n+\n+class CV_EXPORTS_W TickMeter\n+{\n+public:\n+    //! the default constructor\n+    CV_WRAP TickMeter();\n+    CV_WRAP void start();\n+    CV_WRAP void stop();\n+\n+    CV_WRAP int64 getTimeTicks() const;\n+    CV_WRAP double getTimeMicro() const;\n+    CV_WRAP double getTimeMilli() const;\n+    CV_WRAP double getTimeSec()   const;\n+    /**\n+    returns internal counter value.\n+    */\n+    CV_WRAP int64 getCounter() const;\n+\n+    /**\n+    resets internal values.\n+    */\n+    CV_WRAP void reset();\n+private:\n+    int64 counter;\n+    int64 sumTime;\n+    int64 startTime;\n+};\n+\n+std::ostream& operator << (std::ostream& out, const TickMeter& tm);","path":"modules/core/include/opencv2/core/utility.hpp","position":59,"original_position":59,"commit_id":"4178fbed8cb63cb96f7ff85e526f400a9d601e07","original_commit_id":"4178fbed8cb63cb96f7ff85e526f400a9d601e07","user":{"login":"sturkmen72","id":12151541,"avatar_url":"https://avatars.githubusercontent.com/u/12151541?v=3","gravatar_id":"","url":"https://api.github.com/users/sturkmen72","html_url":"https://github.com/sturkmen72","followers_url":"https://api.github.com/users/sturkmen72/followers","following_url":"https://api.github.com/users/sturkmen72/following{/other_user}","gists_url":"https://api.github.com/users/sturkmen72/gists{/gist_id}","starred_url":"https://api.github.com/users/sturkmen72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sturkmen72/subscriptions","organizations_url":"https://api.github.com/users/sturkmen72/orgs","repos_url":"https://api.github.com/users/sturkmen72/repos","events_url":"https://api.github.com/users/sturkmen72/events{/privacy}","received_events_url":"https://api.github.com/users/sturkmen72/received_events","type":"User","site_admin":false},"body":"i need some help about documentation. how can we give an example usage of << operator ?","created_at":"2016-05-26T13:46:10Z","updated_at":"2016-05-26T13:46:10Z","html_url":"https://github.com/Itseez/opencv/pull/6584#discussion_r64747367","pull_request_url":"https://api.github.com/repos/Itseez/opencv/pulls/6584","_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/comments/64747367"},"html":{"href":"https://github.com/Itseez/opencv/pull/6584#discussion_r64747367"},"pull_request":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/6584"}}},"pull_request":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/6584","id":71445861,"html_url":"https://github.com/Itseez/opencv/pull/6584","diff_url":"https://github.com/Itseez/opencv/pull/6584.diff","patch_url":"https://github.com/Itseez/opencv/pull/6584.patch","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/6584","number":6584,"state":"open","locked":false,"title":"cv::TickMeter class addition","user":{"login":"sturkmen72","id":12151541,"avatar_url":"https://avatars.githubusercontent.com/u/12151541?v=3","gravatar_id":"","url":"https://api.github.com/users/sturkmen72","html_url":"https://github.com/sturkmen72","followers_url":"https://api.github.com/users/sturkmen72/followers","following_url":"https://api.github.com/users/sturkmen72/following{/other_user}","gists_url":"https://api.github.com/users/sturkmen72/gists{/gist_id}","starred_url":"https://api.github.com/users/sturkmen72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sturkmen72/subscriptions","organizations_url":"https://api.github.com/users/sturkmen72/orgs","repos_url":"https://api.github.com/users/sturkmen72/repos","events_url":"https://api.github.com/users/sturkmen72/events{/privacy}","received_events_url":"https://api.github.com/users/sturkmen72/received_events","type":"User","site_admin":false},"body":"resolves #6582\r\n\r\n### What does this PR change?\r\nmoves cv::TickMeter class in the core library\r\n\r\ninitial commit","created_at":"2016-05-25T19:06:10Z","updated_at":"2016-05-26T13:46:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36a44e284a049c8cfde77d336a5f22a88b385f74","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Itseez/opencv/pulls/6584/commits","review_comments_url":"https://api.github.com/repos/Itseez/opencv/pulls/6584/comments","review_comment_url":"https://api.github.com/repos/Itseez/opencv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/6584/comments","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/4178fbed8cb63cb96f7ff85e526f400a9d601e07","head":{"label":"sturkmen72:TickMeter_class_addition","ref":"TickMeter_class_addition","sha":"4178fbed8cb63cb96f7ff85e526f400a9d601e07","user":{"login":"sturkmen72","id":12151541,"avatar_url":"https://avatars.githubusercontent.com/u/12151541?v=3","gravatar_id":"","url":"https://api.github.com/users/sturkmen72","html_url":"https://github.com/sturkmen72","followers_url":"https://api.github.com/users/sturkmen72/followers","following_url":"https://api.github.com/users/sturkmen72/following{/other_user}","gists_url":"https://api.github.com/users/sturkmen72/gists{/gist_id}","starred_url":"https://api.github.com/users/sturkmen72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sturkmen72/subscriptions","organizations_url":"https://api.github.com/users/sturkmen72/orgs","repos_url":"https://api.github.com/users/sturkmen72/repos","events_url":"https://api.github.com/users/sturkmen72/events{/privacy}","received_events_url":"https://api.github.com/users/sturkmen72/received_events","type":"User","site_admin":false},"repo":{"id":37188911,"name":"opencv","full_name":"sturkmen72/opencv","owner":{"login":"sturkmen72","id":12151541,"avatar_url":"https://avatars.githubusercontent.com/u/12151541?v=3","gravatar_id":"","url":"https://api.github.com/users/sturkmen72","html_url":"https://github.com/sturkmen72","followers_url":"https://api.github.com/users/sturkmen72/followers","following_url":"https://api.github.com/users/sturkmen72/following{/other_user}","gists_url":"https://api.github.com/users/sturkmen72/gists{/gist_id}","starred_url":"https://api.github.com/users/sturkmen72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sturkmen72/subscriptions","organizations_url":"https://api.github.com/users/sturkmen72/orgs","repos_url":"https://api.github.com/users/sturkmen72/repos","events_url":"https://api.github.com/users/sturkmen72/events{/privacy}","received_events_url":"https://api.github.com/users/sturkmen72/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sturkmen72/opencv","description":"Open Source Computer Vision Library","fork":true,"url":"https://api.github.com/repos/sturkmen72/opencv","forks_url":"https://api.github.com/repos/sturkmen72/opencv/forks","keys_url":"https://api.github.com/repos/sturkmen72/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sturkmen72/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sturkmen72/opencv/teams","hooks_url":"https://api.github.com/repos/sturkmen72/opencv/hooks","issue_events_url":"https://api.github.com/repos/sturkmen72/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/sturkmen72/opencv/events","assignees_url":"https://api.github.com/repos/sturkmen72/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/sturkmen72/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/sturkmen72/opencv/tags","blobs_url":"https://api.github.com/repos/sturkmen72/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sturkmen72/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sturkmen72/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/sturkmen72/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sturkmen72/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/sturkmen72/opencv/languages","stargazers_url":"https://api.github.com/repos/sturkmen72/opencv/stargazers","contributors_url":"https://api.github.com/repos/sturkmen72/opencv/contributors","subscribers_url":"https://api.github.com/repos/sturkmen72/opencv/subscribers","subscription_url":"https://api.github.com/repos/sturkmen72/opencv/subscription","commits_url":"https://api.github.com/repos/sturkmen72/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/sturkmen72/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/sturkmen72/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/sturkmen72/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/sturkmen72/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/sturkmen72/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sturkmen72/opencv/merges","archive_url":"https://api.github.com/repos/sturkmen72/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sturkmen72/opencv/downloads","issues_url":"https://api.github.com/repos/sturkmen72/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/sturkmen72/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/sturkmen72/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/sturkmen72/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sturkmen72/opencv/labels{/name}","releases_url":"https://api.github.com/repos/sturkmen72/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/sturkmen72/opencv/deployments","created_at":"2015-06-10T09:49:40Z","updated_at":"2016-02-12T11:33:45Z","pushed_at":"2016-05-25T23:25:29Z","git_url":"git://github.com/sturkmen72/opencv.git","ssh_url":"git@github.com:sturkmen72/opencv.git","clone_url":"https://github.com/sturkmen72/opencv.git","svn_url":"https://github.com/sturkmen72/opencv","homepage":"opencv.org","size":419431,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"Itseez:master","ref":"master","sha":"0cb1e964721daa41589026cd5e537a435be1ff6b","user":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"name":"opencv","full_name":"Itseez/opencv","owner":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Itseez/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/Itseez/opencv","forks_url":"https://api.github.com/repos/Itseez/opencv/forks","keys_url":"https://api.github.com/repos/Itseez/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Itseez/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Itseez/opencv/teams","hooks_url":"https://api.github.com/repos/Itseez/opencv/hooks","issue_events_url":"https://api.github.com/repos/Itseez/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/Itseez/opencv/events","assignees_url":"https://api.github.com/repos/Itseez/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/Itseez/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/Itseez/opencv/tags","blobs_url":"https://api.github.com/repos/Itseez/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Itseez/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Itseez/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/Itseez/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/Itseez/opencv/languages","stargazers_url":"https://api.github.com/repos/Itseez/opencv/stargazers","contributors_url":"https://api.github.com/repos/Itseez/opencv/contributors","subscribers_url":"https://api.github.com/repos/Itseez/opencv/subscribers","subscription_url":"https://api.github.com/repos/Itseez/opencv/subscription","commits_url":"https://api.github.com/repos/Itseez/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/Itseez/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/Itseez/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/Itseez/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/Itseez/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/Itseez/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Itseez/opencv/merges","archive_url":"https://api.github.com/repos/Itseez/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Itseez/opencv/downloads","issues_url":"https://api.github.com/repos/Itseez/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/Itseez/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/Itseez/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/Itseez/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Itseez/opencv/labels{/name}","releases_url":"https://api.github.com/repos/Itseez/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/Itseez/opencv/deployments","created_at":"2012-07-19T09:40:17Z","updated_at":"2016-05-26T12:59:19Z","pushed_at":"2016-05-26T12:44:59Z","git_url":"git://github.com/Itseez/opencv.git","ssh_url":"git@github.com:Itseez/opencv.git","clone_url":"https://github.com/Itseez/opencv.git","svn_url":"https://github.com/Itseez/opencv","homepage":"opencv.org","size":1075468,"stargazers_count":9674,"watchers_count":9674,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8203,"mirror_url":null,"open_issues_count":1047,"forks":8203,"open_issues":1047,"watchers":9674,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/6584"},"html":{"href":"https://github.com/Itseez/opencv/pull/6584"},"issue":{"href":"https://api.github.com/repos/Itseez/opencv/issues/6584"},"comments":{"href":"https://api.github.com/repos/Itseez/opencv/issues/6584/comments"},"review_comments":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/6584/comments"},"review_comment":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/6584/commits"},"statuses":{"href":"https://api.github.com/repos/Itseez/opencv/statuses/4178fbed8cb63cb96f7ff85e526f400a9d601e07"}}}}
{"actor":{"display_login":"sturkmen72"}}