Changed timeout dec to function for autodoc support
Merge pull request #309 from shermdog/timeout_dec

Changed timeout dec to function for autodoc support