{"action":"created","issue":{"url":"https://api.github.com/repos/stb-tester/stb-tester/issues/364","repository_url":"https://api.github.com/repos/stb-tester/stb-tester","labels_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/364/labels{/name}","comments_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/364/comments","events_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/364/events","html_url":"https://github.com/stb-tester/stb-tester/pull/364","id":156155120,"number":364,"title":"Realtime timestamps","user":{"login":"wmanley","id":494659,"avatar_url":"https://avatars.githubusercontent.com/u/494659?v=3","gravatar_id":"","url":"https://api.github.com/users/wmanley","html_url":"https://github.com/wmanley","followers_url":"https://api.github.com/users/wmanley/followers","following_url":"https://api.github.com/users/wmanley/following{/other_user}","gists_url":"https://api.github.com/users/wmanley/gists{/gist_id}","starred_url":"https://api.github.com/users/wmanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmanley/subscriptions","organizations_url":"https://api.github.com/users/wmanley/orgs","repos_url":"https://api.github.com/users/wmanley/repos","events_url":"https://api.github.com/users/wmanley/events{/privacy}","received_events_url":"https://api.github.com/users/wmanley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-22T14:39:22Z","updated_at":"2016-06-16T13:08:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/364","html_url":"https://github.com/stb-tester/stb-tester/pull/364","diff_url":"https://github.com/stb-tester/stb-tester/pull/364.diff","patch_url":"https://github.com/stb-tester/stb-tester/pull/364.patch"},"body":"The timestamps we currently provide are the PTS data attached to the\r\n`Gst.Sample`s pulled from the source pipeline.  In practice with v4l2src\r\nthis will have tended to roughly be the time from the start of the test or\r\nthe last pipeline restart.  It could be some other number depending on the\r\nsource pipeline used.   It is only useful for comparing the time\r\ndifference between two frames.\r\n\r\nThis commit introduces `sample.realtime_timestamp` for each pulled frame.\r\nThis is the time since the unix epoch in seconds as a float.  This can be\r\nused to compare the time of a frame against:\r\n\r\n* The current time (for debugging)\r\n* Other events that happen on the system such as IR presses for more-precise latency measurements\r\n* Other events that occur in the world such as remote server timestamps or for measuring synchronisation between different devices-under-test (assuming a correctly set system-clock).\r\n\r\nThis could help solve #247 too.\r\n\r\nTODO:\r\n\r\n- [x] Work out an API - perhaps attaching the data as an additional member to `ndarray` would be best.  See http://stackoverflow.com/a/34967782/65031 for how\r\n- [x] Merge #379 \r\n- [x] Add test for `MotionResult` repr\r\n- [x] Add test that provided timestamps are in wall-clock time\r\n- [x] Add release note for new timestamps\r\n- [x] Document `*.time`\r\n- [ ] Clarify what `MotionResult.time` refers to"},"comment":{"url":"https://api.github.com/repos/stb-tester/stb-tester/issues/comments/226479758","html_url":"https://github.com/stb-tester/stb-tester/pull/364#issuecomment-226479758","issue_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/364","id":226479758,"user":{"login":"drothlis","id":12424,"avatar_url":"https://avatars.githubusercontent.com/u/12424?v=3","gravatar_id":"","url":"https://api.github.com/users/drothlis","html_url":"https://github.com/drothlis","followers_url":"https://api.github.com/users/drothlis/followers","following_url":"https://api.github.com/users/drothlis/following{/other_user}","gists_url":"https://api.github.com/users/drothlis/gists{/gist_id}","starred_url":"https://api.github.com/users/drothlis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drothlis/subscriptions","organizations_url":"https://api.github.com/users/drothlis/orgs","repos_url":"https://api.github.com/users/drothlis/repos","events_url":"https://api.github.com/users/drothlis/events{/privacy}","received_events_url":"https://api.github.com/users/drothlis/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T13:08:42Z","updated_at":"2016-06-16T13:08:42Z","body":"Oops, I meant frame \"C\" in example 2."}}
{"actor":{"display_login":"drothlis"}}