timer.periodic now needs a Duration struct