Migration to 64bit counters; Fix very ugly big with check_period; Add shift for 500ms for draw thread;
Fix in LPM tests
Enable gcc optimizations because they provides big speedup wihtout issues