Efficient and flexible methods for simulating models of time since infection.