Timer works properly now.
Merge branch 'master' of https://github.com/mvdenk/JavaProgrammingContest