calculate per-thread time offset