General Time-resolved Computed Tomography from First Principles