started timing code - Maks