{"action":"created","comment":{"url":"https://api.github.com/repos/exceptionless/Foundatio/pulls/comments/79053027","id":79053027,"diff_hunk":"@@ -1,29 +1,29 @@\n ﻿using System;\n using System.Diagnostics;\n+using System.Reactive.Concurrency;\n using System.Threading.Tasks;\n using Foundatio.Extensions;\n using Foundatio.Utility;\n \n namespace Foundatio.Metrics {\n     public class MetricTimer : IAsyncDisposable {\n         private readonly string _name;\n-        private readonly Stopwatch _stopWatch;\n+        private readonly IStopwatch _stopWatch;\n         private bool _disposed;\n         private readonly IMetricsClient _client;\n \n         public MetricTimer(string name, IMetricsClient client) {\n             _name = name;\n             _client = client;\n-            _stopWatch = Stopwatch.StartNew();\n+            _stopWatch = SystemClock.Instance.StartStopwatch();\n         }\n \n         public async Task DisposeAsync() {\n             if (_disposed)\n                 return;\n \n             _disposed = true;\n-            _stopWatch.Stop();\n-            await _client.TimerAsync(_name, (int)_stopWatch.ElapsedMilliseconds).AnyContext();\n+            await _client.TimerAsync(_name, (int)_stopWatch.Elapsed.TotalMilliseconds).AnyContext();","path":"src/Foundatio/Metrics/MetricTimer.cs","position":30,"original_position":30,"commit_id":"aca20f846d77fbea391178a07d7d6ec92223d4ea","original_commit_id":"5dbe42be53fa71b41303cef26b99fadde02c9a54","user":{"login":"niemyjski","id":1020579,"avatar_url":"https://avatars.githubusercontent.com/u/1020579?v=3","gravatar_id":"","url":"https://api.github.com/users/niemyjski","html_url":"https://github.com/niemyjski","followers_url":"https://api.github.com/users/niemyjski/followers","following_url":"https://api.github.com/users/niemyjski/following{/other_user}","gists_url":"https://api.github.com/users/niemyjski/gists{/gist_id}","starred_url":"https://api.github.com/users/niemyjski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niemyjski/subscriptions","organizations_url":"https://api.github.com/users/niemyjski/orgs","repos_url":"https://api.github.com/users/niemyjski/repos","events_url":"https://api.github.com/users/niemyjski/events{/privacy}","received_events_url":"https://api.github.com/users/niemyjski/received_events","type":"User","site_admin":false},"body":"That's not guaranteed, unless the default package doesn't use a stopwatch (https://github.com/Reactive-Extensions/Rx.NET/blob/1ad21f5a853f2b7be5f3a7e4a8d276e7d28f0d73/Rx.NET/Source/System.Reactive.Core/Reactive/Concurrency/Stopwatch.Default.cs)","created_at":"2016-09-15T20:22:41Z","updated_at":"2016-09-15T20:22:41Z","html_url":"https://github.com/exceptionless/Foundatio/pull/62#discussion_r79053027","pull_request_url":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/exceptionless/Foundatio/pulls/comments/79053027"},"html":{"href":"https://github.com/exceptionless/Foundatio/pull/62#discussion_r79053027"},"pull_request":{"href":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62","id":85469603,"html_url":"https://github.com/exceptionless/Foundatio/pull/62","diff_url":"https://github.com/exceptionless/Foundatio/pull/62.diff","patch_url":"https://github.com/exceptionless/Foundatio/pull/62.patch","issue_url":"https://api.github.com/repos/exceptionless/Foundatio/issues/62","number":62,"state":"open","locked":false,"title":"Rx playground","user":{"login":"ejsmith","id":282584,"avatar_url":"https://avatars.githubusercontent.com/u/282584?v=3","gravatar_id":"","url":"https://api.github.com/users/ejsmith","html_url":"https://github.com/ejsmith","followers_url":"https://api.github.com/users/ejsmith/followers","following_url":"https://api.github.com/users/ejsmith/following{/other_user}","gists_url":"https://api.github.com/users/ejsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/ejsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejsmith/subscriptions","organizations_url":"https://api.github.com/users/ejsmith/orgs","repos_url":"https://api.github.com/users/ejsmith/repos","events_url":"https://api.github.com/users/ejsmith/events{/privacy}","received_events_url":"https://api.github.com/users/ejsmith/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-15T19:58:06Z","updated_at":"2016-09-15T20:22:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"54cbb79a5b75d3e4f6c2b01013a2062d140b852a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62/commits","review_comments_url":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62/comments","review_comment_url":"https://api.github.com/repos/exceptionless/Foundatio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exceptionless/Foundatio/issues/62/comments","statuses_url":"https://api.github.com/repos/exceptionless/Foundatio/statuses/aca20f846d77fbea391178a07d7d6ec92223d4ea","head":{"label":"exceptionless:rx-playground","ref":"rx-playground","sha":"aca20f846d77fbea391178a07d7d6ec92223d4ea","user":{"login":"exceptionless","id":5912469,"avatar_url":"https://avatars.githubusercontent.com/u/5912469?v=3","gravatar_id":"","url":"https://api.github.com/users/exceptionless","html_url":"https://github.com/exceptionless","followers_url":"https://api.github.com/users/exceptionless/followers","following_url":"https://api.github.com/users/exceptionless/following{/other_user}","gists_url":"https://api.github.com/users/exceptionless/gists{/gist_id}","starred_url":"https://api.github.com/users/exceptionless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exceptionless/subscriptions","organizations_url":"https://api.github.com/users/exceptionless/orgs","repos_url":"https://api.github.com/users/exceptionless/repos","events_url":"https://api.github.com/users/exceptionless/events{/privacy}","received_events_url":"https://api.github.com/users/exceptionless/received_events","type":"Organization","site_admin":false},"repo":{"id":30369187,"name":"Foundatio","full_name":"exceptionless/Foundatio","owner":{"login":"exceptionless","id":5912469,"avatar_url":"https://avatars.githubusercontent.com/u/5912469?v=3","gravatar_id":"","url":"https://api.github.com/users/exceptionless","html_url":"https://github.com/exceptionless","followers_url":"https://api.github.com/users/exceptionless/followers","following_url":"https://api.github.com/users/exceptionless/following{/other_user}","gists_url":"https://api.github.com/users/exceptionless/gists{/gist_id}","starred_url":"https://api.github.com/users/exceptionless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exceptionless/subscriptions","organizations_url":"https://api.github.com/users/exceptionless/orgs","repos_url":"https://api.github.com/users/exceptionless/repos","events_url":"https://api.github.com/users/exceptionless/events{/privacy}","received_events_url":"https://api.github.com/users/exceptionless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exceptionless/Foundatio","description":"Pluggable foundation blocks for building distributed apps.","fork":false,"url":"https://api.github.com/repos/exceptionless/Foundatio","forks_url":"https://api.github.com/repos/exceptionless/Foundatio/forks","keys_url":"https://api.github.com/repos/exceptionless/Foundatio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exceptionless/Foundatio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exceptionless/Foundatio/teams","hooks_url":"https://api.github.com/repos/exceptionless/Foundatio/hooks","issue_events_url":"https://api.github.com/repos/exceptionless/Foundatio/issues/events{/number}","events_url":"https://api.github.com/repos/exceptionless/Foundatio/events","assignees_url":"https://api.github.com/repos/exceptionless/Foundatio/assignees{/user}","branches_url":"https://api.github.com/repos/exceptionless/Foundatio/branches{/branch}","tags_url":"https://api.github.com/repos/exceptionless/Foundatio/tags","blobs_url":"https://api.github.com/repos/exceptionless/Foundatio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exceptionless/Foundatio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exceptionless/Foundatio/git/refs{/sha}","trees_url":"https://api.github.com/repos/exceptionless/Foundatio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exceptionless/Foundatio/statuses/{sha}","languages_url":"https://api.github.com/repos/exceptionless/Foundatio/languages","stargazers_url":"https://api.github.com/repos/exceptionless/Foundatio/stargazers","contributors_url":"https://api.github.com/repos/exceptionless/Foundatio/contributors","subscribers_url":"https://api.github.com/repos/exceptionless/Foundatio/subscribers","subscription_url":"https://api.github.com/repos/exceptionless/Foundatio/subscription","commits_url":"https://api.github.com/repos/exceptionless/Foundatio/commits{/sha}","git_commits_url":"https://api.github.com/repos/exceptionless/Foundatio/git/commits{/sha}","comments_url":"https://api.github.com/repos/exceptionless/Foundatio/comments{/number}","issue_comment_url":"https://api.github.com/repos/exceptionless/Foundatio/issues/comments{/number}","contents_url":"https://api.github.com/repos/exceptionless/Foundatio/contents/{+path}","compare_url":"https://api.github.com/repos/exceptionless/Foundatio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exceptionless/Foundatio/merges","archive_url":"https://api.github.com/repos/exceptionless/Foundatio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exceptionless/Foundatio/downloads","issues_url":"https://api.github.com/repos/exceptionless/Foundatio/issues{/number}","pulls_url":"https://api.github.com/repos/exceptionless/Foundatio/pulls{/number}","milestones_url":"https://api.github.com/repos/exceptionless/Foundatio/milestones{/number}","notifications_url":"https://api.github.com/repos/exceptionless/Foundatio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exceptionless/Foundatio/labels{/name}","releases_url":"https://api.github.com/repos/exceptionless/Foundatio/releases{/id}","deployments_url":"https://api.github.com/repos/exceptionless/Foundatio/deployments","created_at":"2015-02-05T17:47:22Z","updated_at":"2016-09-15T19:21:14Z","pushed_at":"2016-09-15T20:18:59Z","git_url":"git://github.com/exceptionless/Foundatio.git","ssh_url":"git@github.com:exceptionless/Foundatio.git","clone_url":"https://github.com/exceptionless/Foundatio.git","svn_url":"https://github.com/exceptionless/Foundatio","homepage":"","size":2835,"stargazers_count":244,"watchers_count":244,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":12,"forks":32,"open_issues":12,"watchers":244,"default_branch":"master"}},"base":{"label":"exceptionless:master","ref":"master","sha":"537d63140c4a129abdda94099b0d8e8c07093746","user":{"login":"exceptionless","id":5912469,"avatar_url":"https://avatars.githubusercontent.com/u/5912469?v=3","gravatar_id":"","url":"https://api.github.com/users/exceptionless","html_url":"https://github.com/exceptionless","followers_url":"https://api.github.com/users/exceptionless/followers","following_url":"https://api.github.com/users/exceptionless/following{/other_user}","gists_url":"https://api.github.com/users/exceptionless/gists{/gist_id}","starred_url":"https://api.github.com/users/exceptionless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exceptionless/subscriptions","organizations_url":"https://api.github.com/users/exceptionless/orgs","repos_url":"https://api.github.com/users/exceptionless/repos","events_url":"https://api.github.com/users/exceptionless/events{/privacy}","received_events_url":"https://api.github.com/users/exceptionless/received_events","type":"Organization","site_admin":false},"repo":{"id":30369187,"name":"Foundatio","full_name":"exceptionless/Foundatio","owner":{"login":"exceptionless","id":5912469,"avatar_url":"https://avatars.githubusercontent.com/u/5912469?v=3","gravatar_id":"","url":"https://api.github.com/users/exceptionless","html_url":"https://github.com/exceptionless","followers_url":"https://api.github.com/users/exceptionless/followers","following_url":"https://api.github.com/users/exceptionless/following{/other_user}","gists_url":"https://api.github.com/users/exceptionless/gists{/gist_id}","starred_url":"https://api.github.com/users/exceptionless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exceptionless/subscriptions","organizations_url":"https://api.github.com/users/exceptionless/orgs","repos_url":"https://api.github.com/users/exceptionless/repos","events_url":"https://api.github.com/users/exceptionless/events{/privacy}","received_events_url":"https://api.github.com/users/exceptionless/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exceptionless/Foundatio","description":"Pluggable foundation blocks for building distributed apps.","fork":false,"url":"https://api.github.com/repos/exceptionless/Foundatio","forks_url":"https://api.github.com/repos/exceptionless/Foundatio/forks","keys_url":"https://api.github.com/repos/exceptionless/Foundatio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exceptionless/Foundatio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exceptionless/Foundatio/teams","hooks_url":"https://api.github.com/repos/exceptionless/Foundatio/hooks","issue_events_url":"https://api.github.com/repos/exceptionless/Foundatio/issues/events{/number}","events_url":"https://api.github.com/repos/exceptionless/Foundatio/events","assignees_url":"https://api.github.com/repos/exceptionless/Foundatio/assignees{/user}","branches_url":"https://api.github.com/repos/exceptionless/Foundatio/branches{/branch}","tags_url":"https://api.github.com/repos/exceptionless/Foundatio/tags","blobs_url":"https://api.github.com/repos/exceptionless/Foundatio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exceptionless/Foundatio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exceptionless/Foundatio/git/refs{/sha}","trees_url":"https://api.github.com/repos/exceptionless/Foundatio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exceptionless/Foundatio/statuses/{sha}","languages_url":"https://api.github.com/repos/exceptionless/Foundatio/languages","stargazers_url":"https://api.github.com/repos/exceptionless/Foundatio/stargazers","contributors_url":"https://api.github.com/repos/exceptionless/Foundatio/contributors","subscribers_url":"https://api.github.com/repos/exceptionless/Foundatio/subscribers","subscription_url":"https://api.github.com/repos/exceptionless/Foundatio/subscription","commits_url":"https://api.github.com/repos/exceptionless/Foundatio/commits{/sha}","git_commits_url":"https://api.github.com/repos/exceptionless/Foundatio/git/commits{/sha}","comments_url":"https://api.github.com/repos/exceptionless/Foundatio/comments{/number}","issue_comment_url":"https://api.github.com/repos/exceptionless/Foundatio/issues/comments{/number}","contents_url":"https://api.github.com/repos/exceptionless/Foundatio/contents/{+path}","compare_url":"https://api.github.com/repos/exceptionless/Foundatio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exceptionless/Foundatio/merges","archive_url":"https://api.github.com/repos/exceptionless/Foundatio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exceptionless/Foundatio/downloads","issues_url":"https://api.github.com/repos/exceptionless/Foundatio/issues{/number}","pulls_url":"https://api.github.com/repos/exceptionless/Foundatio/pulls{/number}","milestones_url":"https://api.github.com/repos/exceptionless/Foundatio/milestones{/number}","notifications_url":"https://api.github.com/repos/exceptionless/Foundatio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exceptionless/Foundatio/labels{/name}","releases_url":"https://api.github.com/repos/exceptionless/Foundatio/releases{/id}","deployments_url":"https://api.github.com/repos/exceptionless/Foundatio/deployments","created_at":"2015-02-05T17:47:22Z","updated_at":"2016-09-15T19:21:14Z","pushed_at":"2016-09-15T20:18:59Z","git_url":"git://github.com/exceptionless/Foundatio.git","ssh_url":"git@github.com:exceptionless/Foundatio.git","clone_url":"https://github.com/exceptionless/Foundatio.git","svn_url":"https://github.com/exceptionless/Foundatio","homepage":"","size":2835,"stargazers_count":244,"watchers_count":244,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":12,"forks":32,"open_issues":12,"watchers":244,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62"},"html":{"href":"https://github.com/exceptionless/Foundatio/pull/62"},"issue":{"href":"https://api.github.com/repos/exceptionless/Foundatio/issues/62"},"comments":{"href":"https://api.github.com/repos/exceptionless/Foundatio/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/exceptionless/Foundatio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exceptionless/Foundatio/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/exceptionless/Foundatio/statuses/aca20f846d77fbea391178a07d7d6ec92223d4ea"}}}}
{"actor":{"display_login":"niemyjski"}}