Adopted Stopwatch sample

Api changed from Timer.repeating() to Timer.periodic()