Survival time of the susceptible-infected-susceptible infection process on a graph