Just a small comment:
Why build and write arrays? is not it easier / faster / scalable to write string:
Format into string rules!

And original topic starter's question:
Period varies +/- 1 ms, recorded time varies +/- 7 ms.
It does not depend if Get time is forced to be right after Wait ms multiple.
Time Temperature Period
15:35:24.328 0.50 99
15:35:24.421 0.41 100
15:35:24.531 0.24 101
15:35:24.625 0.61 99
15:35:24.718 0.80 101
15:35:24.828 0.46 99