Refactoring getTime() to fix compiling problems
Merge pull request #299 from ping19/master

Refactoring getTime() to fix compiling problems