cpu: Add time immediate fetching

Signed-off-by: Michael Buesch <m@bues.ch>
Add templates for IEC timers/counters

Signed-off-by: Michael Buesch <m@bues.ch>
Update timestamp on every SFC64 call

Signed-off-by: Michael Buesch <m@bues.ch>