{"action":"created","issue":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2502","repository_url":"https://api.github.com/repos/Facepunch/garrysmod-issues","labels_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2502/labels{/name}","comments_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2502/comments","events_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2502/events","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/2502","id":138742220,"number":2502,"title":"Please address CurTime's lack of precision","user":{"login":"xaviergmail","id":522034,"avatar_url":"https://avatars.githubusercontent.com/u/522034?v=3","gravatar_id":"","url":"https://api.github.com/users/xaviergmail","html_url":"https://github.com/xaviergmail","followers_url":"https://api.github.com/users/xaviergmail/followers","following_url":"https://api.github.com/users/xaviergmail/following{/other_user}","gists_url":"https://api.github.com/users/xaviergmail/gists{/gist_id}","starred_url":"https://api.github.com/users/xaviergmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaviergmail/subscriptions","organizations_url":"https://api.github.com/users/xaviergmail/orgs","repos_url":"https://api.github.com/users/xaviergmail/repos","events_url":"https://api.github.com/users/xaviergmail/events{/privacy}","received_events_url":"https://api.github.com/users/xaviergmail/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-06T01:32:03Z","updated_at":"2016-03-06T01:51:28Z","closed_at":null,"body":"Player movement (among other things, but is the most noticealbe) is heavily affected by CurTime. It's a float, so precision isn't that great.\r\n\r\nAfter just 9 hours of uptime, we already lose half of our precision:\r\n![](http://xavie.ru/i/VYXQW6)\r\n\r\nCompared to 194 days if it were a double\r\n![](http://xavie.ru/i/VYWxuf)\r\n\r\n\r\n\r\nIt is not uncommon to have a server stay up for longer than 9/18 hours without a map change, depending on the gamemode.\r\n\r\nI know I'm not only speaking for myself when I say this, but scheduling server restarts / map changes just hurts the flow of my gamemode as well as its player count (loading a large map / navmesh can take sometimes up to 8 minutes and people give up trying to reconnect)\r\n\r\n```\r\n07:51:23 - [RCON Response] <Xavier> : > print(CurTime())...\r\n524243.21875\r\n\r\n07:51:38 - [RCON Response] <Xavier> : > print(CurTime() / 60 / 60 / 24)  -- Days...\r\n6.0678052662037\r\n```"},"comment":{"url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/comments/192780083","html_url":"https://github.com/Facepunch/garrysmod-issues/issues/2502#issuecomment-192780083","issue_url":"https://api.github.com/repos/Facepunch/garrysmod-issues/issues/2502","id":192780083,"user":{"login":"aStonedPenguin","id":6313418,"avatar_url":"https://avatars.githubusercontent.com/u/6313418?v=3","gravatar_id":"","url":"https://api.github.com/users/aStonedPenguin","html_url":"https://github.com/aStonedPenguin","followers_url":"https://api.github.com/users/aStonedPenguin/followers","following_url":"https://api.github.com/users/aStonedPenguin/following{/other_user}","gists_url":"https://api.github.com/users/aStonedPenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/aStonedPenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aStonedPenguin/subscriptions","organizations_url":"https://api.github.com/users/aStonedPenguin/orgs","repos_url":"https://api.github.com/users/aStonedPenguin/repos","events_url":"https://api.github.com/users/aStonedPenguin/events{/privacy}","received_events_url":"https://api.github.com/users/aStonedPenguin/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T01:51:28Z","updated_at":"2016-03-06T01:51:28Z","body":"It's extremely annoying and harmful to player counts having to do server restarts every few days due to this. +1"}}