<PackageReference Include="NUnit" Version="3.10.0" />

TimeoutHelper

static class TimeoutHelper
A helper class to capture a start time using Environment.TickCout as a time in milliseconds, also updates a given timeout bu subtracting the current time from the start time
public static uint GetTime()

Returns the Environment.TickCount as a start time in milliseconds as a uint, TickCount tools over from postive to negative every ~ 25 days then ~25 days to back to positive again, uint is sued to ignore the sign and double the range to 50 days

public static int UpdateTimeOut(uint startTime, int originalWaitMillisecondsTimeout)

Helper function to measure and update the elapsed time