29 references to Ticks
System.ServiceModel.Primitives (29)
Internals\System\Runtime\IOThreadTimer.cs (10)
60maxSkew = Ticks.FromMilliseconds(maxSkewInMilliseconds); 74SetAt(Ticks.Add(Ticks.Now, Ticks.FromTimeSpan(timeFromNow))); 80SetAt(Ticks.Add(Ticks.Now, Ticks.FromMilliseconds(millisecondsFromNow))); 210long now = Ticks.Now; 216timerGroup.WaitableTimer.Set(Ticks.Add(now, maxTimeToWaitForMoreTimers)); 253long now = Ticks.Now;
Internals\System\Runtime\TimeoutHelper.cs (8)
90long ticks = Ticks.FromTimeSpan(timeout); 95return Ticks.ToMilliseconds(ticks); 113return Ticks.ToTimeSpan(Ticks.Add(Ticks.FromTimeSpan(timeout1), Ticks.FromTimeSpan(timeout2))); 141return Ticks.ToTimeSpan((Ticks.FromTimeSpan(timeout) / factor) + 1);
System\ServiceModel\Channels\ChannelReliableSession.cs (4)
640return Ticks.ToTimeSpan(Ticks.FromTimeSpan(Settings.InactivityTimeout) / 2); 650TimeSpan fastPollingInterval = Ticks.ToTimeSpan(Ticks.FromTimeSpan(_binder.DefaultSendTimeout) / 2);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (2)
1664return Ticks.ToTimeSpan(Ticks.FromTimeSpan(inactivityTimeout) / 2 / maxRetryCount);
System\ServiceModel\Channels\ServiceChannel.cs (4)
2410_idleTicks = Ticks.FromTimeSpan(idle); 2448Interlocked.Exchange(ref _lastActivity, Ticks.Now); 2483long ticksNow = Ticks.Now; 2511_timer.Change(Ticks.ToTimeSpan(abortTime - ticksNow), Timeout.InfiniteTimeSpan);
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
123return (Ticks.Now / TimeSpan.TicksPerMillisecond) << Constants.TimeMultiplier;