Home
last modified time | relevance | path

Searched refs:TimeInterval (Results 1 – 25 of 82) sorted by relevance

1234

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Time/
DTimeInterval.cs20 public struct TimeInterval : IComparable<TimeInterval>, IEquatable<TimeInterval> struct
23 public static explicit operator TimeInterval(string s) in operator TimeInterval() argument
32 public static bool TryParse(string input, out TimeInterval output) in TryParse() argument
53 output = new TimeInterval(ticks); in TryParse()
57 public static TimeInterval Min(TimeInterval t1, TimeInterval t2) in Min() argument
62 public static TimeInterval FromNanoseconds(ulong v) in FromNanoseconds() argument
67 public static TimeInterval FromMicroseconds(ulong v) in FromMicroseconds() argument
72 public static TimeInterval FromMilliseconds(ulong v) in FromMilliseconds() argument
77 public static TimeInterval FromMilliseconds(float v) in FromMilliseconds() argument
82 public static TimeInterval FromSeconds(ulong v) in FromSeconds() argument
[all …]
DTimeHandle.cs133 public void GrantTimeInterval(TimeInterval interval) in GrantTimeInterval()
202 public bool RequestTimeInterval(out TimeInterval interval) in RequestTimeInterval()
281 interval = TimeInterval.Empty; in RequestTimeInterval()
286 …DebugHelper.Assert(reportedTimeResiduum == TimeInterval.Empty, "Reported time residuum should be e… in RequestTimeInterval()
288 slaveTimeResiduum = TimeInterval.Empty; in RequestTimeInterval()
300 public void ReportProgress(TimeInterval progress) in ReportProgress()
317 if(reportedTimeResiduum != TimeInterval.Empty) in ReportProgress()
320 reportedTimeResiduum = TimeInterval.Empty; in ReportProgress()
338 public void ReportBackAndContinue(TimeInterval timeLeft) in ReportBackAndContinue()
351 …DebugHelper.Assert(slaveTimeResiduum == TimeInterval.Empty, "Time residuum should be empty here."); in ReportBackAndContinue()
[all …]
DBaseClockSource.cs24 unaccountedTimes = new List<TimeInterval>(); in BaseClockSource()
26 nearestLimitIn = TimeInterval.Maximal; in BaseClockSource()
32 public TimeInterval NearestLimitIn
43 public void Advance(TimeInterval time, bool immediately = false) in Advance()
52 var thisTurn = TimeInterval.Min(nearestLimitIn, left); in Advance()
83 unaccountedTimes.Add(TimeInterval.Empty); in AddClockEntry()
104 unaccountedTimes.Add(TimeInterval.Empty); in ExchangeClockEntryWith()
150 unaccountedTimes[i] = TimeInterval.Empty; in GetClockEntry()
168 elapsed = TimeInterval.Empty; in GetClockEntry()
225 public virtual TimeInterval CurrentValue
[all …]
DTimeSourceBase.cs319 public TimeInterval Quantum
355 …public TimeInterval ElapsedVirtualTime { get { return TimeInterval.FromTicks(virtualTicksElapsed.C…
360 …public TimeInterval ElapsedHostTime { get { return TimeInterval.FromTicks(hostTicksElapsed.Cumulat…
366 public TimeInterval ElapsedVirtualHostTimeDifference
376 return TimeInterval.Empty;
378 return TimeInterval.FromTicks(virtualTicks - hostTicks);
386 public TimeInterval NearestSyncPoint { get; private set; }
426 public event Action<TimeInterval> SyncHook;
441 public event Action<TimeInterval> TimePassed;
446 public event Action<TimeInterval, TimeInterval> QuantumChanged;
[all …]
DITimeSource.cs24 TimeInterval Quantum { get; set; }
34 TimeInterval NearestSyncPoint { get; }
39 TimeInterval ElapsedVirtualTime { get; }
DTimeStamp.cs19 public TimeStamp(TimeInterval interval, ITimeDomain domain) in TimeStamp()
30 public TimeInterval TimeElapsed { get; private set; }
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/
DTimeTests.cs25 clocksource.Advance(TimeInterval.FromSeconds(1)); in ShouldTickWithOneHandler()
27 clocksource.Advance(TimeInterval.FromSeconds(1)); in ShouldTickWithOneHandler()
29 clocksource.Advance(TimeInterval.FromSeconds(1)); in ShouldTickWithOneHandler()
31 clocksource.Advance(TimeInterval.FromSeconds(2)); in ShouldTickWithOneHandler()
44 clocksource.Advance(TimeInterval.FromSeconds(2)); in ShouldTickWithTwoHandlers()
47 clocksource.Advance(TimeInterval.FromSeconds(2)); in ShouldTickWithTwoHandlers()
50 clocksource.Advance(TimeInterval.FromSeconds(1)); in ShouldTickWithTwoHandlers()
71 clockSource.Advance(TimeInterval.FromSeconds(9), true); in ShouldHaveHandlersInSync()
72 clockSource.Advance(TimeInterval.FromSeconds(8), true); in ShouldHaveHandlersInSync()
73 clockSource.Advance(TimeInterval.FromSeconds(20), true); in ShouldHaveHandlersInSync()
[all …]
DTimeHandleTests.cs32 interval = TimeInterval.FromTicks(1000); in SetUp()
50 ContinueOnSink(TimeInterval.FromTicks(100)); in ShouldHandleProgressIncludingResiduum()
57 ReportProgressOnSink(TimeInterval.FromTicks(1100)); in ShouldHandleProgressIncludingResiduum()
70 ShouldWaitReturn(false, false, TimeInterval.Empty); in WaitShouldNotBlockIfThereWasNoRequest()
281 RequestOnSink().ShouldFinish(Tuple.Create(false, TimeInterval.Empty)); in RequestShouldReturnDifferentValuesDependingOnSideEnabledState2()
313 ShouldRequestReturn(false, TimeInterval.Empty); in DisablingHanldeSinkSideShouldFinishRequest()
324 ShouldRequestReturn(false, TimeInterval.Empty); in DisablingHanldeSourceSideShouldFinishRequest()
334 ShouldRequestReturn(false, TimeInterval.Empty); in RequestShouldNotBlockOnDisabledHandle()
341 WaitOnSource().ShouldFinish(Tuple.Create(false, false, TimeInterval.Empty)); in BreakingShouldFinishWaiting3()
384 WaitOnSource().ShouldFinish(Tuple.Create(false, false, TimeInterval.Empty)); in ContinueShouldFinishWaiting()
[all …]
DTimeSourceTests.cs61 …using(var timeSource = new MasterTimeSource { Quantum = TimeInterval.FromMilliseconds(1000), Advan… in ShouldNotSleepOnAdvanceImmediately()
86 …using(var timeSource = new MasterTimeSource() { Quantum = TimeInterval.FromTicks(1000000), Advance… in ShouldCalculateCumulativeLoadForIndefinitePerformance()
105 …using(var timeSource = new MasterTimeSource() { Quantum = TimeInterval.FromTicks(1000000), Advance… in ShouldCalculateCumulativeLoadForHighPerformance()
124 …using(var timeSource = new MasterTimeSource() { Quantum = TimeInterval.FromTicks(1000000), Advance… in ShouldCalculateCumulativeLoadForLowPerformance()
142 …using(var timeSource = new MasterTimeSource { Quantum = TimeInterval.FromTicks(100), AdvanceImmedi… in ShouldHandleSlaveTimeSourceWithSameQuantum()
143 …using(var timeSlave = new SlaveTimeSource() { Quantum = TimeInterval.FromTicks(100), AdvanceImmedi… in ShouldHandleSlaveTimeSourceWithSameQuantum()
168 …using(var timeSource = new MasterTimeSource { Quantum = TimeInterval.FromTicks(100), AdvanceImmedi… in ShouldHandleSlaveTimeSourceWithDifferentQuantum()
169 …using(var timeSlave = new SlaveTimeSource() { Quantum = TimeInterval.FromTicks(10), AdvanceImmedia… in ShouldHandleSlaveTimeSourceWithDifferentQuantum()
192 …using(var timeSource = new MasterTimeSource { Quantum = TimeInterval.FromTicks(10), AdvanceImmedia… in ShouldHandleSlaveTimeSourceWithNotAlignedQuantum()
193 …using(var timeSlave = new SlaveTimeSource() { Quantum = TimeInterval.FromTicks(3), AdvanceImmediat… in ShouldHandleSlaveTimeSourceWithNotAlignedQuantum()
[all …]
DComparingTimerTests.cs34 clockSource.Advance(TimeInterval.FromMicroseconds(65535), true); in ShouldHandleCompareValueChangeWhenEnabled()
39 clockSource.Advance(TimeInterval.FromMicroseconds(1), true); in ShouldHandleCompareValueChangeWhenEnabled()
46 clockSource.Advance(TimeInterval.FromMicroseconds(16304), true); in ShouldHandleCompareValueChangeWhenEnabled()
56 clockSource.Advance(TimeInterval.FromMicroseconds(65535 - 16304), true); in ShouldHandleCompareValueChangeWhenEnabled()
61 clockSource.Advance(TimeInterval.FromMicroseconds(1), true); in ShouldHandleCompareValueChangeWhenEnabled()
66 clockSource.Advance(TimeInterval.FromMicroseconds(65535), true); in ShouldHandleCompareValueChangeWhenEnabled()
71 clockSource.Advance(TimeInterval.FromMicroseconds(1), true); in ShouldHandleCompareValueChangeWhenEnabled()
89 clockSource.Advance(TimeInterval.FromMicroseconds(advance), true); in ShouldClearWhenValueSetToZero()
112 clockSource.Advance(TimeInterval.FromMicroseconds(advance), true); in ShouldGenerateCompareEventAtCompareAfterClear()
117 clockSource.Advance(TimeInterval.FromMicroseconds(compare), true); in ShouldGenerateCompareEventAtCompareAfterClear()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Mocks/
DHPSHostController.cs154 public byte[] ReadMagicNumber(TimeInterval timeInterval) in ReadMagicNumber()
161 public byte[] ReadHardwareVersion(TimeInterval timeInterval) in ReadHardwareVersion()
168 public string[,] ReadSystemStatus(TimeInterval timeInterval) in ReadSystemStatus()
175 public byte[] ReadMemoryBankAvailable(TimeInterval timeInterval) in ReadMemoryBankAvailable()
182 public string[,] ReadError(TimeInterval timeInterval) in ReadError()
187 public byte[] ReadErrorBytes(TimeInterval timeInterval) in ReadErrorBytes()
194 public string[,] ReadEnabledFeatures(TimeInterval timeInterval) in ReadEnabledFeatures()
201 public string[,] ReadFeature0StatusBits(TimeInterval timeInterval) in ReadFeature0StatusBits()
208 public string[,] ReadFeature1StatusBits(TimeInterval timeInterval) in ReadFeature1StatusBits()
215 public byte[] ReadFirmwareVersionHigh(TimeInterval timeInterval) in ReadFirmwareVersionHigh()
[all …]
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/RESD/
DRESDStream.cs63 …Action<T, TimeInterval> beforeCallback = FindCallback<T>(owner, @this.SampleType, RESDStreamStatus…
64 …Action<T, TimeInterval> currentCallback = FindCallback<T>(owner, @this.SampleType, RESDStreamStatu…
65 …Action<T, TimeInterval> afterCallback = FindCallback<T>(owner, @this.SampleType, RESDStreamStatus.…
66 Action<T, TimeInterval, RESDStreamStatus> sampleCallback = (sample, ts, status) =>
87 …Action<Out, TimeInterval> beforeCallback = FindCallback<Out>(owner, @this.SampleType, RESDStreamSt…
88 …Action<Out, TimeInterval> currentCallback = FindCallback<Out>(owner, @this.SampleType, RESDStreamS…
89 …Action<Out, TimeInterval> afterCallback = FindCallback<Out>(owner, @this.SampleType, RESDStreamSta…
90 Action<Out, TimeInterval, RESDStreamStatus> sampleCallback = (sample, ts, status) =>
109 out Out sample, out TimeInterval timestamp) where T: RESDSample, new()
126 …private static Action<Out, TimeInterval> FindCallback<Out>(IUnderstandRESD instance, SampleType sa… in FindCallback()
[all …]
DDataBlock.cs33 IEnumerable<KeyValuePair<TimeInterval, RESDSample>> Samples { get; }
51 public abstract IEnumerable<KeyValuePair<TimeInterval, RESDSample>> Samples { get; }
141 {"Period", TimeInterval.FromMicroseconds(Period / 1000).ToString()},
145 public override IEnumerable<KeyValuePair<TimeInterval, RESDSample>> Samples
162 …yield return new KeyValuePair<TimeInterval, RESDSample>(TimeInterval.FromMicroseconds(currentTime …
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Foreign/
DRecordEntry.cs15 public RecordEntry(string name, T value, Action<T> handler, TimeInterval timestamp) in RecordEntry()
41 public TimeInterval Timestamp
54 …public RecordEntry(string name, T1 value1, T2 value2, Action<T1, T2> handler, TimeInterval timesta… in RecordEntry()
82 public TimeInterval Timestamp
DRecordEntryBase.cs17 public RecordEntryBase(string name, Delegate handler, TimeInterval timestamp) : this() in RecordEntryBase()
32 public TimeInterval Timestamp { get; private set; }
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/
DMonitorTimeExtensions.cs22 public static void SetQuantum(this Machine @this, TimeInterval interval) in SetQuantum()
37 public static void SetQuantum(this Emulation @this, TimeInterval interval) in SetQuantum()
42 public static void SetGlobalQuantum(this Emulation @this, TimeInterval quantum) in SetGlobalQuantum()
87 private static void SetQuantumRecursively(TimeSourceBase source, TimeInterval quantum) in SetQuantumRecursively()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DSnapshotTracker.cs25 public string GetLastSnapshotBeforeOrAtTimeStamp(TimeInterval timeStamp) in GetLastSnapshotBeforeOrAtTimeStamp()
56 public void Save(TimeInterval timeStamp, string path) in Save()
103 public SnapshotDescriptor(TimeInterval timeStamp, string path) in SnapshotDescriptor()
109 public TimeInterval TimeStamp { get; }
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Wireless/
DInterferenceQueue.cs49TimeInterval addTime = IPeripheralExtensions.GetMachine(sender).LocalTimeSource.ElapsedVirtualTime; in Add()
88 public static TimeInterval GetTxStartTime(IRadio sender) in GetTxStartTime()
98 return TimeInterval.Empty; in GetTxStartTime()
163 private TimeInterval startTx;
183 public TimeInterval StartTxTimestamp
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/UserInterface/Commands/
DResdCommand.cs122 if(!TimeInterval.TryParse(startTimeString.Value, out var startTime)) in Run()
151 !TimeInterval.TryParse(startTimeString, out var startTime) || in Run()
152 !TimeInterval.TryParse(durationString, out var duration)) in Run()
170 if(!TimeInterval.TryParse(startTimeString.Value, out var startTime)) in Run()
175 if(!TimeInterval.TryParse(endTimeString.Value, out var endTime)) in Run()
287 private TimeInterval TimeStampToTimeInterval(ulong timeStamp) in TimeStampToTimeInterval()
289 return TimeInterval.FromMicroseconds(timeStamp / 1000); in TimeStampToTimeInterval()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Testing/
DPWMTester.cs39 TimeInterval dt; in OnGPIO()
50 dt = TimeInterval.Empty; in OnGPIO()
DTerminalTester.cs34 …public TerminalTester(TimeInterval timeout, EndLineOption endLineOption = EndLineOption.TreatLineF… in TerminalTester()
146 …public TerminalTesterResult WaitFor(string pattern, TimeInterval? timeout = null, bool treatAsRege… in WaitFor()
187 …public TerminalTesterResult WaitFor(string[] patterns, TimeInterval? timeout = null, bool treatAsR… in WaitFor()
220 … public TerminalTesterResult NextLine(TimeInterval? timeout = null, bool pauseEmulation = false)
239 public bool IsIdle(TimeInterval? timeout = null, bool pauseEmulation = true)
301 public TimeInterval GlobalTimeout { get; set; }
317 var delay = TimeInterval.FromSeconds(delayed.Item1.TotalSeconds); in HandleDelayedChars()
326 …alTesterResult WaitForMatch(Func<TerminalTesterResult> resultMatcher, TimeInterval timeout, bool p… in WaitForMatch()
359 else if(timeout == TimeInterval.Empty) in WaitForMatch()
404 …private TerminalTesterResult WaitForMultilineMatch(string[] patterns, TimeInterval? timeout = null… in WaitForMultilineMatch()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Sensor/
DSensorSamplesFifo.cs47 if(!TimeInterval.TryParse(delayString, out var delay)) in FeedSamplesPeriodically()
67 if(!TimeInterval.TryParse(delayString, out var delay)) in FeedSamplesFromBinaryFile()
71 TimeInterval? firstPacketStartTime = null; in FeedSamplesFromBinaryFile()
121 …ad FeedSamplesInner(IMachine machine, IPeripheral owner, string name, TimeInterval startDelay, uin… in FeedSamplesInner()
223 public void StartDelayed(TimeInterval i) in StartDelayed()
DSensorSamplesPacket.cs18 public SensorSamplesPacket(TimeInterval startTime, uint frequency) in SensorSamplesPacket()
47 TimeInterval.FromSeconds(header.Time), in ParseFile()
78 public TimeInterval StartTime { get; }
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CPU/
DBaseCPU.cs136 public void SkipTime(TimeInterval amountOfTime) in SkipTime()
145 … var newInterval = TimeInterval.FromCPUCycles(instructions, PerformanceInMips, out var _); in SkipTime()
414 …var intervalToReport = TimeInterval.FromCPUCycles(instructions + executedResiduum, PerformanceInMi… in ReportProgress()
599 TimeInterval virtualTimeAhead; in CpuThreadBodyInner()
661 …var intervalToSleep = TimeInterval.FromCPUCycles(instructionsToSkip, PerformanceInMips, out var cy… in CpuThreadBodyInner()
665 …instructionsToSkip = Math.Max(TimeInterval.FromTimeSpan(intervalSlept, nsResiduum).ToCPUCycles(Per… in CpuThreadBodyInner()
709 TimeHandle.ReportBackAndContinue(TimeInterval.Empty); in CpuThreadBodyInner()
717 TimeHandle.ReportBackAndContinue(TimeInterval.Empty); in CpuThreadBodyInner()
727 …var timeLeft = TimeInterval.FromCPUCycles(instructionsLeft + executedResiduum, PerformanceInMips, … in CpuThreadBodyInner()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/
DIMachine.cs47 void HandleTimeProgress(TimeInterval diff); in HandleTimeProgress()
51 …IManagedThread ObtainManagedThread(Action action, TimeInterval period, string name = "managed thre… in ObtainManagedThread()
63 void ScheduleAction(TimeInterval delay, Action<TimeInterval> action, string name = null); in ScheduleAction()

1234