A time-dependent approach to the kinetics of homogeneous nucleation