Macroscopic dielectric function within time-dependent density functional theory—Real time evolution versus the Casida approach