{"action":"closed","issue":{"url":"https://api.github.com/repos/m-decoster/RsGenetic/issues/3","labels_url":"https://api.github.com/repos/m-decoster/RsGenetic/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/m-decoster/RsGenetic/issues/3/comments","events_url":"https://api.github.com/repos/m-decoster/RsGenetic/issues/3/events","html_url":"https://github.com/m-decoster/RsGenetic/issues/3","id":121876399,"number":3,"title":"Add support for timing of simulations","user":{"login":"m-decoster","id":4245468,"avatar_url":"https://avatars.githubusercontent.com/u/4245468?v=3","gravatar_id":"","url":"https://api.github.com/users/m-decoster","html_url":"https://github.com/m-decoster","followers_url":"https://api.github.com/users/m-decoster/followers","following_url":"https://api.github.com/users/m-decoster/following{/other_user}","gists_url":"https://api.github.com/users/m-decoster/gists{/gist_id}","starred_url":"https://api.github.com/users/m-decoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-decoster/subscriptions","organizations_url":"https://api.github.com/users/m-decoster/orgs","repos_url":"https://api.github.com/users/m-decoster/repos","events_url":"https://api.github.com/users/m-decoster/events{/privacy}","received_events_url":"https://api.github.com/users/m-decoster/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/m-decoster/RsGenetic/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-12T19:58:42Z","updated_at":"2015-12-13T19:22:32Z","closed_at":"2015-12-13T19:22:32Z","body":"This can be useful to compare the impact of certain `Simulation` implementations or different `SelectionType` on performance.\r\n\r\nI suggest letting the `fn run(&mut self)` function, which currently returns `()`, return `i64` instead, containing the time passed in this function. The new definition would be `fn run(&mut self) -> i64;`.\r\n\r\nAn alternative is adding a seperate `time` function, but this would require implementors of this trait to store more fields, introducing more state. I'd like to keep state to a minimum."}}