blkparse: split off the timestamp correction code in to a separate function