Most probably coined in the military. Compare rack, a nautical term for a bunk bed.
rack time (uncountable)