Time-dependent Ginzburg–Landau equation of charge-density-waves and numerical simulation of the sliding