Sorry, looks like replacing time() with clock_gettime(CLOCK_MONOTONIC) fixes the issue. Should have googled better first. I forgot to say, there's supposed to be another synchronised section in place of the 2nd "printf", hence my concern.
In reply to Re: Is it OK for Time::HiRes::time() to report the time differently per thread?
by Anonymous Monk
in thread Is it OK for Time::HiRes::time() to report the time differently per thread?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |