helper method for splitting time into seconds and microseconds, and use it in both places where needed
Merge pull request #143 from ricardclau/master

helper method for splitting time into seconds and microseconds