100c100,101
< params(p), number_of_threads(p->numberOfThreads), system(p->system)
---
> params(p), number_of_threads(p->numberOfThreads), system(p->system),
> phase(p->phase)
104c105,106
< number_of_threads(p->numberOfThreads), system(p->system)
---
> number_of_threads(p->numberOfThreads), system(p->system),
> phase(p->phase)
260c262
< Tick next_tick = curTick + clock - 1;
---
> Tick next_tick = curTick - phase + clock - 1;
261a264
> next_tick += phase;
268a272,273
> next_tick -= (next_tick % clock);
> next_tick += phase;
273d277
< next_tick -= (next_tick % clock);