Make sampling time cached. Add a time conversion as a dict.
Integrate Pierre AWG context and tweak it a bit.