helper method for splitting time into seconds and microseconds, and use it in both places where needed