libpftimers: use time conversion helpers