{"action":"created","comment":{"url":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/comments/36041402","id":36041402,"diff_hunk":"@@ -31,6 +32,47 @@ void smart_delete (SmartPointer<TYPE> &sp) DEAL_II_DEPRECATED;\n std::string demangle(const char *name);\n \n /**\n+ * This function collects some time utilities:\n+ *  - sleep(unsigned int t) freezes the thread for t milliseconds;\n+ *  - get_start_time() sets the start time for a measure\n+ *  - get_end_time() sets the end time for a measure\n+ *  - get_num_measures() return the number of measures done\n+ *  - an overload of the operator [] is provided to access to all measures\n+ *\n+ *  All measures are stored in seconds.\n+ *  get_start_time() should be used before get_end_time() and viceversa.\n+ */\n+class TimeUtilities\n+{\n+public:\n+\n+  TimeUtilities()\n+    :\n+    status(true),\n+    times()\n+  {}\n+\n+  void sleep(unsigned int t);\n+  void get_start_time();","path":"include/utilities.h","position":44,"original_position":44,"commit_id":"8c66b5f1c5ca1c024a832bfbc0078b98cf1d0a2c","original_commit_id":"8c66b5f1c5ca1c024a832bfbc0078b98cf1d0a2c","user":{"login":"luca-heltai","id":2919756,"avatar_url":"https://avatars.githubusercontent.com/u/2919756?v=3","gravatar_id":"","url":"https://api.github.com/users/luca-heltai","html_url":"https://github.com/luca-heltai","followers_url":"https://api.github.com/users/luca-heltai/followers","following_url":"https://api.github.com/users/luca-heltai/following{/other_user}","gists_url":"https://api.github.com/users/luca-heltai/gists{/gist_id}","starred_url":"https://api.github.com/users/luca-heltai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luca-heltai/subscriptions","organizations_url":"https://api.github.com/users/luca-heltai/orgs","repos_url":"https://api.github.com/users/luca-heltai/repos","events_url":"https://api.github.com/users/luca-heltai/events{/privacy}","received_events_url":"https://api.github.com/users/luca-heltai/received_events","type":"User","site_admin":false},"body":"Add doc","created_at":"2015-08-02T09:58:02Z","updated_at":"2015-08-02T09:58:02Z","html_url":"https://github.com/luca-heltai/dealii-sak/pull/114#discussion_r36041402","pull_request_url":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114","_links":{"self":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/comments/36041402"},"html":{"href":"https://github.com/luca-heltai/dealii-sak/pull/114#discussion_r36041402"},"pull_request":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114"}}},"pull_request":{"url":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114","id":41384621,"html_url":"https://github.com/luca-heltai/dealii-sak/pull/114","diff_url":"https://github.com/luca-heltai/dealii-sak/pull/114.diff","patch_url":"https://github.com/luca-heltai/dealii-sak/pull/114.patch","issue_url":"https://api.github.com/repos/luca-heltai/dealii-sak/issues/114","number":114,"state":"open","locked":false,"title":"[WIP] class to limit the output to n lines + class to manage time measures","user":{"login":"ESeNonFossiIo","id":8956997,"avatar_url":"https://avatars.githubusercontent.com/u/8956997?v=3","gravatar_id":"","url":"https://api.github.com/users/ESeNonFossiIo","html_url":"https://github.com/ESeNonFossiIo","followers_url":"https://api.github.com/users/ESeNonFossiIo/followers","following_url":"https://api.github.com/users/ESeNonFossiIo/following{/other_user}","gists_url":"https://api.github.com/users/ESeNonFossiIo/gists{/gist_id}","starred_url":"https://api.github.com/users/ESeNonFossiIo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESeNonFossiIo/subscriptions","organizations_url":"https://api.github.com/users/ESeNonFossiIo/orgs","repos_url":"https://api.github.com/users/ESeNonFossiIo/repos","events_url":"https://api.github.com/users/ESeNonFossiIo/events{/privacy}","received_events_url":"https://api.github.com/users/ESeNonFossiIo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-31T21:52:52Z","updated_at":"2015-08-02T09:58:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acc81c7aeaf8ae0223913836b8e8bba82b6a9f5a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114/commits","review_comments_url":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114/comments","review_comment_url":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/luca-heltai/dealii-sak/issues/114/comments","statuses_url":"https://api.github.com/repos/luca-heltai/dealii-sak/statuses/8c66b5f1c5ca1c024a832bfbc0078b98cf1d0a2c","head":{"label":"ESeNonFossiIo:rewrite_lines","ref":"rewrite_lines","sha":"8c66b5f1c5ca1c024a832bfbc0078b98cf1d0a2c","user":{"login":"ESeNonFossiIo","id":8956997,"avatar_url":"https://avatars.githubusercontent.com/u/8956997?v=3","gravatar_id":"","url":"https://api.github.com/users/ESeNonFossiIo","html_url":"https://github.com/ESeNonFossiIo","followers_url":"https://api.github.com/users/ESeNonFossiIo/followers","following_url":"https://api.github.com/users/ESeNonFossiIo/following{/other_user}","gists_url":"https://api.github.com/users/ESeNonFossiIo/gists{/gist_id}","starred_url":"https://api.github.com/users/ESeNonFossiIo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESeNonFossiIo/subscriptions","organizations_url":"https://api.github.com/users/ESeNonFossiIo/orgs","repos_url":"https://api.github.com/users/ESeNonFossiIo/repos","events_url":"https://api.github.com/users/ESeNonFossiIo/events{/privacy}","received_events_url":"https://api.github.com/users/ESeNonFossiIo/received_events","type":"User","site_admin":false},"repo":{"id":33674525,"name":"dealii-sak","full_name":"ESeNonFossiIo/dealii-sak","owner":{"login":"ESeNonFossiIo","id":8956997,"avatar_url":"https://avatars.githubusercontent.com/u/8956997?v=3","gravatar_id":"","url":"https://api.github.com/users/ESeNonFossiIo","html_url":"https://github.com/ESeNonFossiIo","followers_url":"https://api.github.com/users/ESeNonFossiIo/followers","following_url":"https://api.github.com/users/ESeNonFossiIo/following{/other_user}","gists_url":"https://api.github.com/users/ESeNonFossiIo/gists{/gist_id}","starred_url":"https://api.github.com/users/ESeNonFossiIo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ESeNonFossiIo/subscriptions","organizations_url":"https://api.github.com/users/ESeNonFossiIo/orgs","repos_url":"https://api.github.com/users/ESeNonFossiIo/repos","events_url":"https://api.github.com/users/ESeNonFossiIo/events{/privacy}","received_events_url":"https://api.github.com/users/ESeNonFossiIo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ESeNonFossiIo/dealii-sak","description":"deal.II Swiss Army Knife","fork":true,"url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak","forks_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/forks","keys_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/teams","hooks_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/hooks","issue_events_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/issues/events{/number}","events_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/events","assignees_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/assignees{/user}","branches_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/branches{/branch}","tags_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/tags","blobs_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/refs{/sha}","trees_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/statuses/{sha}","languages_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/languages","stargazers_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/stargazers","contributors_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/contributors","subscribers_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/subscribers","subscription_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/subscription","commits_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/commits{/sha}","git_commits_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/git/commits{/sha}","comments_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/comments{/number}","issue_comment_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/issues/comments{/number}","contents_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/contents/{+path}","compare_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/merges","archive_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/downloads","issues_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/issues{/number}","pulls_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/pulls{/number}","milestones_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/milestones{/number}","notifications_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/labels{/name}","releases_url":"https://api.github.com/repos/ESeNonFossiIo/dealii-sak/releases{/id}","created_at":"2015-04-09T14:45:04Z","updated_at":"2015-05-06T07:58:59Z","pushed_at":"2015-08-02T08:06:08Z","git_url":"git://github.com/ESeNonFossiIo/dealii-sak.git","ssh_url":"git@github.com:ESeNonFossiIo/dealii-sak.git","clone_url":"https://github.com/ESeNonFossiIo/dealii-sak.git","svn_url":"https://github.com/ESeNonFossiIo/dealii-sak","homepage":null,"size":3618,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"luca-heltai:master","ref":"master","sha":"4e3865233fc5191b6ac075d2d9723499c6959e6d","user":{"login":"luca-heltai","id":2919756,"avatar_url":"https://avatars.githubusercontent.com/u/2919756?v=3","gravatar_id":"","url":"https://api.github.com/users/luca-heltai","html_url":"https://github.com/luca-heltai","followers_url":"https://api.github.com/users/luca-heltai/followers","following_url":"https://api.github.com/users/luca-heltai/following{/other_user}","gists_url":"https://api.github.com/users/luca-heltai/gists{/gist_id}","starred_url":"https://api.github.com/users/luca-heltai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luca-heltai/subscriptions","organizations_url":"https://api.github.com/users/luca-heltai/orgs","repos_url":"https://api.github.com/users/luca-heltai/repos","events_url":"https://api.github.com/users/luca-heltai/events{/privacy}","received_events_url":"https://api.github.com/users/luca-heltai/received_events","type":"User","site_admin":false},"repo":{"id":23152486,"name":"dealii-sak","full_name":"luca-heltai/dealii-sak","owner":{"login":"luca-heltai","id":2919756,"avatar_url":"https://avatars.githubusercontent.com/u/2919756?v=3","gravatar_id":"","url":"https://api.github.com/users/luca-heltai","html_url":"https://github.com/luca-heltai","followers_url":"https://api.github.com/users/luca-heltai/followers","following_url":"https://api.github.com/users/luca-heltai/following{/other_user}","gists_url":"https://api.github.com/users/luca-heltai/gists{/gist_id}","starred_url":"https://api.github.com/users/luca-heltai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luca-heltai/subscriptions","organizations_url":"https://api.github.com/users/luca-heltai/orgs","repos_url":"https://api.github.com/users/luca-heltai/repos","events_url":"https://api.github.com/users/luca-heltai/events{/privacy}","received_events_url":"https://api.github.com/users/luca-heltai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luca-heltai/dealii-sak","description":"deal.II Swiss Army Knife","fork":false,"url":"https://api.github.com/repos/luca-heltai/dealii-sak","forks_url":"https://api.github.com/repos/luca-heltai/dealii-sak/forks","keys_url":"https://api.github.com/repos/luca-heltai/dealii-sak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luca-heltai/dealii-sak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luca-heltai/dealii-sak/teams","hooks_url":"https://api.github.com/repos/luca-heltai/dealii-sak/hooks","issue_events_url":"https://api.github.com/repos/luca-heltai/dealii-sak/issues/events{/number}","events_url":"https://api.github.com/repos/luca-heltai/dealii-sak/events","assignees_url":"https://api.github.com/repos/luca-heltai/dealii-sak/assignees{/user}","branches_url":"https://api.github.com/repos/luca-heltai/dealii-sak/branches{/branch}","tags_url":"https://api.github.com/repos/luca-heltai/dealii-sak/tags","blobs_url":"https://api.github.com/repos/luca-heltai/dealii-sak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luca-heltai/dealii-sak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luca-heltai/dealii-sak/git/refs{/sha}","trees_url":"https://api.github.com/repos/luca-heltai/dealii-sak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luca-heltai/dealii-sak/statuses/{sha}","languages_url":"https://api.github.com/repos/luca-heltai/dealii-sak/languages","stargazers_url":"https://api.github.com/repos/luca-heltai/dealii-sak/stargazers","contributors_url":"https://api.github.com/repos/luca-heltai/dealii-sak/contributors","subscribers_url":"https://api.github.com/repos/luca-heltai/dealii-sak/subscribers","subscription_url":"https://api.github.com/repos/luca-heltai/dealii-sak/subscription","commits_url":"https://api.github.com/repos/luca-heltai/dealii-sak/commits{/sha}","git_commits_url":"https://api.github.com/repos/luca-heltai/dealii-sak/git/commits{/sha}","comments_url":"https://api.github.com/repos/luca-heltai/dealii-sak/comments{/number}","issue_comment_url":"https://api.github.com/repos/luca-heltai/dealii-sak/issues/comments{/number}","contents_url":"https://api.github.com/repos/luca-heltai/dealii-sak/contents/{+path}","compare_url":"https://api.github.com/repos/luca-heltai/dealii-sak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luca-heltai/dealii-sak/merges","archive_url":"https://api.github.com/repos/luca-heltai/dealii-sak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luca-heltai/dealii-sak/downloads","issues_url":"https://api.github.com/repos/luca-heltai/dealii-sak/issues{/number}","pulls_url":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls{/number}","milestones_url":"https://api.github.com/repos/luca-heltai/dealii-sak/milestones{/number}","notifications_url":"https://api.github.com/repos/luca-heltai/dealii-sak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luca-heltai/dealii-sak/labels{/name}","releases_url":"https://api.github.com/repos/luca-heltai/dealii-sak/releases{/id}","created_at":"2014-08-20T14:52:37Z","updated_at":"2015-05-06T07:55:08Z","pushed_at":"2015-08-02T08:06:09Z","git_url":"git://github.com/luca-heltai/dealii-sak.git","ssh_url":"git@github.com:luca-heltai/dealii-sak.git","clone_url":"https://github.com/luca-heltai/dealii-sak.git","svn_url":"https://github.com/luca-heltai/dealii-sak","homepage":null,"size":4511,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114"},"html":{"href":"https://github.com/luca-heltai/dealii-sak/pull/114"},"issue":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/issues/114"},"comments":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/luca-heltai/dealii-sak/statuses/8c66b5f1c5ca1c024a832bfbc0078b98cf1d0a2c"}}}}