Fix warning about time being deprecated
Merge pull request #460 from Arcterus/deprecation

Fix warning about time being deprecated