platform: add timer implementation for sim