Time-dependent Hartree-Fock calculations of dispersion energy