node: add timer implementation

platform: moved platform.c to platform/sim since it was sim specific