public static NetClockTester.ValidityFlags TestValidity(ref NetClockTester test, ref uLink.NetworkMessageInfo info, long intervalMS, NetClockTester.ValidityFlags testFor) { NetClockTester.ValidityFlags validityFlag = NetClockTester.TestValidity(ref test, info.timestampInMillis, intervalMS); test.Results.Add(validityFlag & testFor); return(validityFlag); }
public static NetClockTester.ValidityFlags TestValidity(ref NetClockTester test, ref uLink.NetworkMessageInfo info, double intervalSec, NetClockTester.ValidityFlags testFor) { return(NetClockTester.TestValidity(ref test, ref info, (long)Math.Floor(intervalSec * 1000), testFor)); }