Long-time behaviour of Langevin algorithms with time-dependent energy function