An Arduino timing mechanism