Initial api for timers and few examples.

//cc @dinedal, @dariocravero