Update main
Add time counter function prototype and time class
Add time counter function implementation