Cable Cars is a real time commitment — fit it in only if it's a priority.
Allow 1 hr (mostly the line).
Hanging off the running board as you crest a hill is pure SF joy, for about four minutes. The rest is queueing at Powell & Market behind two cruise ships' worth of people.