libpftimers: use time conversion helper functions