{"action":"created","issue":{"url":"https://api.github.com/repos/tarantool/tarantool/issues/872","labels_url":"https://api.github.com/repos/tarantool/tarantool/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/tarantool/tarantool/issues/872/comments","events_url":"https://api.github.com/repos/tarantool/tarantool/issues/872/events","html_url":"https://github.com/tarantool/tarantool/issues/872","id":88958476,"number":872,"title":"Bindings for clock_gettime()/gettimeofday()","user":{"login":"rtsisyk","id":1799054,"avatar_url":"https://avatars.githubusercontent.com/u/1799054?v=3","gravatar_id":"","url":"https://api.github.com/users/rtsisyk","html_url":"https://github.com/rtsisyk","followers_url":"https://api.github.com/users/rtsisyk/followers","following_url":"https://api.github.com/users/rtsisyk/following{/other_user}","gists_url":"https://api.github.com/users/rtsisyk/gists{/gist_id}","starred_url":"https://api.github.com/users/rtsisyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtsisyk/subscriptions","organizations_url":"https://api.github.com/users/rtsisyk/orgs","repos_url":"https://api.github.com/users/rtsisyk/repos","events_url":"https://api.github.com/users/rtsisyk/events{/privacy}","received_events_url":"https://api.github.com/users/rtsisyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tarantool/tarantool/labels/customer","name":"customer","color":"bfdadc"},{"url":"https://api.github.com/repos/tarantool/tarantool/labels/feature","name":"feature","color":"bfe5bf"}],"state":"open","locked":false,"assignee":{"login":"medvdanil","id":6022217,"avatar_url":"https://avatars.githubusercontent.com/u/6022217?v=3","gravatar_id":"","url":"https://api.github.com/users/medvdanil","html_url":"https://github.com/medvdanil","followers_url":"https://api.github.com/users/medvdanil/followers","following_url":"https://api.github.com/users/medvdanil/following{/other_user}","gists_url":"https://api.github.com/users/medvdanil/gists{/gist_id}","starred_url":"https://api.github.com/users/medvdanil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medvdanil/subscriptions","organizations_url":"https://api.github.com/users/medvdanil/orgs","repos_url":"https://api.github.com/users/medvdanil/repos","events_url":"https://api.github.com/users/medvdanil/events{/privacy}","received_events_url":"https://api.github.com/users/medvdanil/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/tarantool/tarantool/milestones/11","html_url":"https://github.com/tarantool/tarantool/milestones/1.6.7","labels_url":"https://api.github.com/repos/tarantool/tarantool/milestones/11/labels","id":820916,"number":11,"title":"1.6.7","description":"Next in 1.6 series","creator":{"login":"kostja","id":482910,"avatar_url":"https://avatars.githubusercontent.com/u/482910?v=3","gravatar_id":"","url":"https://api.github.com/users/kostja","html_url":"https://github.com/kostja","followers_url":"https://api.github.com/users/kostja/followers","following_url":"https://api.github.com/users/kostja/following{/other_user}","gists_url":"https://api.github.com/users/kostja/gists{/gist_id}","starred_url":"https://api.github.com/users/kostja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostja/subscriptions","organizations_url":"https://api.github.com/users/kostja/orgs","repos_url":"https://api.github.com/users/kostja/repos","events_url":"https://api.github.com/users/kostja/events{/privacy}","received_events_url":"https://api.github.com/users/kostja/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":0,"state":"open","created_at":"2014-10-10T09:38:26Z","updated_at":"2015-08-28T15:21:15Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-06-17T08:49:20Z","updated_at":"2015-08-28T15:25:55Z","closed_at":null,"body":"Please add bindings for high resolution realtime clock (e.g. fiber.now()).\r\nI see such FFI bindings in many customers projects.\r\n\r\nProbably for 1.5 too.\r\n"},"comment":{"url":"https://api.github.com/repos/tarantool/tarantool/issues/comments/135806067","html_url":"https://github.com/tarantool/tarantool/issues/872#issuecomment-135806067","issue_url":"https://api.github.com/repos/tarantool/tarantool/issues/872","id":135806067,"user":{"login":"Sulverus","id":1609170,"avatar_url":"https://avatars.githubusercontent.com/u/1609170?v=3","gravatar_id":"","url":"https://api.github.com/users/Sulverus","html_url":"https://github.com/Sulverus","followers_url":"https://api.github.com/users/Sulverus/followers","following_url":"https://api.github.com/users/Sulverus/following{/other_user}","gists_url":"https://api.github.com/users/Sulverus/gists{/gist_id}","starred_url":"https://api.github.com/users/Sulverus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sulverus/subscriptions","organizations_url":"https://api.github.com/users/Sulverus/orgs","repos_url":"https://api.github.com/users/Sulverus/repos","events_url":"https://api.github.com/users/Sulverus/events{/privacy}","received_events_url":"https://api.github.com/users/Sulverus/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T15:25:55Z","updated_at":"2015-08-28T15:25:55Z","body":"Hires clock: https://github.com/Mons/tnt-luas/blob/master/hires.lua\r\nAns we need add wrapper in hires.lua to compute time diff like this:\r\n```lua\r\nlocal function diff (fun, ...)\r\n    local start_time = now()\r\n    fun(...)\r\n    local diff = now() - start_time\r\n    return diff\r\nend\r\n```\r\n\r\nAfter that we can use bindings in microbench"}}