Basically, this function retrieves the number of milliseconds that have elapsed since the system was started, up to 49.7 days.
We restart the docker container, but only the docker container, often every two days.
Does anyone know if when we restart the docker container the TickCount is also restarted or this function is restarted only when we restart the host server?
You might want to take a look at this SO post with a c# snippet that mimiks GetTickCount for remote machines. From the container perspective, your host is nothing else than a remote machine. Just replace GetRemoteMachineTickCount("REMOTEMACHINENAME"); with GetRemoteMachineTickCount("host.docker.internal");and you should be good to go.