Yang Curry
Yang Curry

Reputation: 9

Any way to make linux system time go faster?

I'm working on an application related to time. In order to simulate a real environment, I needed to adjust the system clock of a virtual machine 1440 times faster (one day became one minute) during testing.

My application actually runs in a docker container, and I tried using libfaketime to speed up my container clock, and it worked. But the problem is that I have multiple containers that need to synchronize their time, which seems difficult to do.

Since this is a test environment, multiple containers are running on one VM through docker-compose, so can I just speed up the system clock of the VM? How can we do this?

Upvotes: 0

Views: 303

Answers (0)

Related Questions