Fixed crash on empty map file
Use correct time interval measurement method