Added a function to easily convert timer values to seconds.