Added function to get seconds from tick count.