222 references to Ticks
mscorlib (47)
system\currenttimezone.cs (5)
101
if (daylightTime == null || daylightTime.Delta.
Ticks
== 0) {
102
return offset.
Ticks
;
112
if (daylightTime.Delta.
Ticks
> 0) {
139
return offset.
Ticks
;
239
return new TimeSpan(TimeZone.CalculateUtcOffset(time, GetDaylightChanges(time.Year)).
Ticks
+ m_ticksOffset);
system\datetime.cs (6)
716
offsetTicks = TimeZoneInfo.GetLocalUtcOffset(DateTime.MinValue, TimeZoneInfoOptions.NoThrowOnInvalidTime).
Ticks
;
719
offsetTicks = TimeZoneInfo.GetLocalUtcOffset(DateTime.MaxValue, TimeZoneInfoOptions.NoThrowOnInvalidTime).
Ticks
;
726
offsetTicks = TimeZoneInfo.GetUtcOffsetFromUtc(utcDt, TimeZoneInfo.Local, out isDaylightSavings, out isAmbiguousLocalDst).
Ticks
;
822
Int64 storedTicks = ticks - offset.
Ticks
;
1057
Int64 offset = TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(utc, out isAmbiguousLocalDst).
Ticks
;
1403
Int64 offset = TimeZoneInfo.GetUtcOffsetFromUtc(this, TimeZoneInfo.Local, out isDaylightSavings, out isAmbiguousLocalDst).
Ticks
;
system\datetimeoffset.cs (5)
784
Int64 ticks = offset.
Ticks
;
791
return (Int16)(offset.
Ticks
/ TimeSpan.TicksPerMinute);
798
Contract.Assert(offset.
Ticks
>= MinOffset && offset.
Ticks
<= MaxOffset, "Offset not validated.");
801
Int64 utcTicks = dateTime.Ticks - offset.
Ticks
;
System\Diagnostics\Eventing\TraceLogging\SimpleTypeInfos.cs (2)
925
collector.AddScalar(value.Offset.
Ticks
);
945
collector.AddScalar(value.
Ticks
);
system\globalization\datetimeparse.cs (8)
2642
Int64 offsetTicks = result.timeZoneOffset.
Ticks
;
2689
resultTicks -= result.timeZoneOffset.
Ticks
;
2720
resultTicks -= result.timeZoneOffset.
Ticks
;
2722
resultTicks += tz.GetUtcOffset(bTimeOnly ? DateTime.Now: result.parsedDate, TimeZoneInfoOptions.NoThrowOnInvalidTime).
Ticks
;
2729
resultTicks -= result.timeZoneOffset.
Ticks
;
2733
resultTicks += tz.GetUtcOffset(result.parsedDate, TimeZoneInfoOptions.NoThrowOnInvalidTime).
Ticks
;
2738
resultTicks += TimeZoneInfo.GetUtcOffsetFromUtc(utcDt, TimeZoneInfo.Local, out isDaylightSavings, out isAmbiguousLocalDst).
Ticks
;
3348
return new DateTime(DateTime.UtcNow.Ticks + result.timeZoneOffset.
Ticks
, DateTimeKind.Unspecified);
system\globalization\juliancalendar.cs (1)
391
return new DateTime(DateToTicks(year, month, day) + (new TimeSpan(0, hour, minute, second, millisecond)).
Ticks
);
system\resources\resourcewriter.cs (1)
669
writer.Write(((TimeSpan) value).
Ticks
);
system\runtime\remoting\lifetimeservices.cs (5)
40
private static long s_leaseTimeTicks = TimeSpan.FromMinutes(5).
Ticks
;
41
private static long s_renewOnCallTimeTicks = TimeSpan.FromMinutes(2).
Ticks
;
42
private static long s_sponsorshipTimeoutTicks = TimeSpan.FromMinutes(2).
Ticks
;
43
private static long s_pollTimeTicks = TimeSpan.FromMilliseconds(10000).
Ticks
;
52
Volatile.Write(ref ticks, value.
Ticks
);
system\runtime\remoting\soapinteroptypes.cs (1)
285
long timea = Math.Abs(timeSpan.
Ticks
% TimeSpan.TicksPerDay);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
140
WriteInt64(value.
Ticks
);
system\timespan.cs (4)
198
if (
Ticks
==TimeSpan.MinValue.
Ticks
)
248
if (
Ticks
==TimeSpan.MinValue.
Ticks
)
system\timezone.cs (2)
99
long tickCount = time.Ticks - GetUtcOffset(time).
Ticks
;
218
if (daylightTimes.Delta.
Ticks
> 0) {
system\timezoneinfo.cs (6)
714
Int64 ticks = utcDateTime.Ticks + destinationOffset.
Ticks
;
807
Int64 utcTicks = dateTime.Ticks - sourceOffset.
Ticks
;
1344
ticks += offset.
Ticks
;
1595
if (daylightTime.Delta.
Ticks
> 0) {
2947
if (baseUtcOffset.
Ticks
% TimeSpan.TicksPerMinute != 0) {
3186
if (daylightDelta.
Ticks
% TimeSpan.TicksPerMinute != 0) {
PresentationCore (74)
Core\CSharp\System\Windows\Media\Animation\Clock.cs (20)
2094
Debug_VerifyOffsetFromBegin(offsetFromBegin.
Ticks
, optimizedOffsetFromBegin.
Ticks
);
2107
localProgress = TimeSpan.FromTicks(offsetFromBegin.
Ticks
% _currentDuration.TimeSpan.
Ticks
);
2108
newIteration = (int)(offsetFromBegin.
Ticks
/ _resolvedDuration.TimeSpan.
Ticks
); // Iteration count starting from 0
2223
long offsetOnLaterIterations = (offsetFromBegin - _currentDuration.TimeSpan).
Ticks
;
2225
localProgress = TimeSpan.FromTicks(offsetOnLaterIterations % _resolvedDuration.TimeSpan.
Ticks
);
2226
iterationIncrement = 1 + (int)(offsetOnLaterIterations / _resolvedDuration.TimeSpan.
Ticks
);
2371
double durationInTicks = (double)_currentDuration.TimeSpan.
Ticks
;
2372
double t = ((double)localProgress.
Ticks
) / durationInTicks; // For tracking progress
2546
presentAndFutureDuration = ((double)_currentDuration.TimeSpan.
Ticks
) * presentAndFutureIterations;
2550
presentAndFutureDuration = ((double)_currentDuration.TimeSpan.
Ticks
) // Current iteration; below is the future iteration length
2551
+ ((double)_resolvedDuration.TimeSpan.
Ticks
) * (presentAndFutureIterations - 1);
3231
_syncData.PreviousSyncClockTime = TimeSpan.FromTicks(ourSyncTimeST.
Ticks
% syncClockDuration.TimeSpan.
Ticks
);
3541
Int64 desiredFrameNumber = (time.
Ticks
* desiredFrameRate) / s_TimeSpanTicksPerSecond + frameOffset;
3683
return TimeSpan.FromTicks((long)(((double)timeSpan.
Ticks
) / factor + 0.5));
3701
return TimeSpan.FromTicks((long)(factor * (double)timeSpan.
Ticks
+ 0.5));
4507
static Int64 s_TimeSpanTicksPerSecond = TimeSpan.FromSeconds(1).
Ticks
;
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanAnimationUsingKeyFrames.cs (1)
789
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\CharAnimationUsingKeyFrames.cs (1)
789
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16AnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32AnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64AnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixAnimationUsingKeyFrames.cs (1)
789
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectAnimationUsingKeyFrames.cs (1)
789
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\PointAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\RectAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\StringAnimationUsingKeyFrames.cs (1)
789
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorAnimationUsingKeyFrames.cs (1)
881
TimeSpan uniformTimeStep = TimeSpan.FromTicks((_sortedResolvedKeyFrames[block.EndIndex]._resolvedKeyTime - blockBeginTime).
Ticks
/ segmentCount);
Core\CSharp\System\Windows\Media\Animation\TimeIntervalCollection.cs (25)
869
|| appliedSpeedRatio > period.TimeSpan.
Ticks
) // If the speed ratio is high enough the period will effectively be 0
885
long beginTimeInTicks = beginTime.
Ticks
;
887
long periodInTicks = (long)((double)period.TimeSpan.
Ticks
/ appliedSpeedRatio);
915
projectedCurrentNodeTime = ((CurrentNodeTime.
Ticks
- beginTimeInTicks) % doublePeriod);
924
projectedCurrentNodeTime = (CurrentNodeTime.
Ticks
- beginTimeInTicks) % periodInTicks;
961
|| (NextNodeTime.
Ticks
- CurrentNodeTime.
Ticks
>= projectedTimeUntilIntersection))
995
|| appliedSpeedRatio > period.TimeSpan.
Ticks
) // If the speed ratio is high enough the period will effectively be 0
1000
long periodInTicks = (long)((double)period.TimeSpan.
Ticks
/ appliedSpeedRatio);
1010
long firstNodePeriod = (FirstNodeTime - beginTime).
Ticks
/ periodInTicks;
1012
long lastNodePeriod = (lastNodeTime - beginTime).
Ticks
/ periodInTicks;
1054
outputInTicks = (long)(appliedSpeedRatio * (double)(endTime - beginTime).
Ticks
);
1058
long periodInTicks = period.TimeSpan.
Ticks
; // Start by folding the point into its place inside a simple duration
1200
long periodInTicks = period.TimeSpan.
Ticks
;
1207
includeMaxPoint = includeFillPeriod && (activeDuration.Value.
Ticks
% periodInTicks == 0); // Fill starts at a boundary
1273
double timeOffset = (double)((this.CurrentNodeTime - beginTime).
Ticks
);
1291
double timeOffset = (double)((endTime.Value - beginTime).
Ticks
);
1364
currentProjection = CurrentNodeTime.
Ticks
% doublePeriod;
1379
currentProjection = CurrentNodeTime.
Ticks
% periodInTicks;
1401
long intervalLength = (NextNodeTime - CurrentNodeTime).
Ticks
;
1415
currentProjection = CurrentNodeTime.
Ticks
% doublePeriod;
1498
currentProjection = CurrentNodeTime.
Ticks
% periodInTicks;
1839
t = (double)_nodeTime[_current].
Ticks
;
1847
t = (double)_nodeTime[_current].
Ticks
;
1855
t = (double)(periodInTicks - _nodeTime[_current].
Ticks
); // We actually use the complement from 100% progress
Core\CSharp\System\Windows\Media\Animation\TimeManager.cs (1)
388
EventTrace.EasyTraceEvent(EventTrace.Keyword.KeywordAnimation | EventTrace.Keyword.KeywordPerf, EventTrace.Event.WClientTimeManagerTickBegin, (_startTime + _globalTime).
Ticks
/ TimeSpan.TicksPerMillisecond);
Core\CSharp\System\Windows\Media\MediaContext.cs (6)
610
nextTickNeeded = TimeSpan.FromTicks(Math.Max(nextTickNeeded.
Ticks
, minimumDelay.
Ticks
));
1210
if ((nextPresentationTicks - _estimatedNextPresentationTime.
Ticks
) * _animationRenderRate > TimeSpan.FromMilliseconds(500).
Ticks
)
2112
TicksToCounts(_estimatedNextPresentationTime.
Ticks
)
2208
long presentationTime = _estimatedNextPresentationTime.
Ticks
;
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (1)
1143
HRESULT.Check(MILMedia.SetPosition(_nativeMedia, value.
Ticks
));
System (6)
net\System\Net\mail\SmtpDateTime.cs (3)
418
if (Math.Abs(sanitizedTimeSpan.
Ticks
) > timeSpanMaxTicks)
432
if (span.
Ticks
== 0)
447
output = span.
Ticks
> 0 ? "+" : "-";
regex\system\text\regularexpressions\Regex.cs (1)
344
si.AddValue("matchTimeout", this.MatchTimeout.
Ticks
);
regex\system\text\regularexpressions\RegexCompiler.cs (1)
3222
LdcI8(matchTimeout.
Ticks
);
regex\System\Text\RegularExpressions\RegexMatchTimeoutException.cs (1)
111
si.AddValue("timeoutTicks", this.matchTimeout.
Ticks
);
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\SqlCommandAsyncResult.cs (2)
64
long openTimeout = Math.Min(timeout.
Ticks
, SqlCommandAsyncResult.MaximumOpenTimeout.
Ticks
);
System.Configuration (1)
System\Configuration\ValidatorUtils.cs (1)
103
ValidateResolution(TimeSpan.FromSeconds( resolutionInSeconds ).ToString(), value.
Ticks
, resolutionInSeconds * TimeSpan.TicksPerSecond);
System.Data (23)
fx\src\data\System\Data\Common\TimeSpanStorage.cs (4)
72
sum += values[record].
Ticks
;
87
meanSum += values[record].
Ticks
;
103
meanSum += values[record].
Ticks
;
113
double x = (double)(values[record].
Ticks
- mean);
fx\src\data\System\Data\ProviderBase\DbConnectionInternal.cs (1)
525
if ((now.Ticks - _createTime.Ticks) > Pool.LoadBalanceTimeout.
Ticks
) {
fx\src\data\System\Data\Sql\SqlMetaData.cs (2)
1032
return new TimeSpan(InternalAdjustTimeTicks(value.
Ticks
));
1297
smd = new SqlMetaData(name, SqlDbType.Time, 0, InferScaleFromTimeTicks(((TimeSpan)value).
Ticks
));
fx\src\data\System\Data\SqlClient\SqlBuffer.cs (4)
416
return new DateTimeOffset(GetTicksFromDateTime2Info(_value._dateTimeOffsetInfo.dateTime2Info) + offset.
Ticks
, offset);
883
_value._timeInfo.ticks = timeSpan.
Ticks
;
901
_value._dateTime2Info.timeInfo.ticks = dateTime.TimeOfDay.
Ticks
;
922
_value._dateTimeOffsetInfo.dateTime2Info.timeInfo.ticks = utcDateTime.TimeOfDay.
Ticks
;
fx\src\data\System\Data\SqlClient\TdsParser.cs (8)
6260
if (0 > value.
Ticks
|| value.
Ticks
>= TimeSpan.TicksPerDay) {
6264
long time = value.
Ticks
/ TdsEnums.TICKS_FROM_SCALE[scale];
6274
if (0 > value.
Ticks
|| value.
Ticks
>= TimeSpan.TicksPerDay) {
6277
long time = value.
Ticks
/ TdsEnums.TICKS_FROM_SCALE[scale];
6282
long time = value.TimeOfDay.
Ticks
/ TdsEnums.TICKS_FROM_SCALE[scale]; // DateTime.TimeOfDay always returns a valid TimeSpan for Time
6303
long time = value.TimeOfDay.
Ticks
/ TdsEnums.TICKS_FROM_SCALE[scale]; // DateTime.TimeOfDay always returns a valid TimeSpan for Time
fx\src\data\System\Data\SqlClient\TdsValueSetter.cs (3)
518
Int64 time = value.TimeOfDay.
Ticks
/ TdsEnums.TICKS_FROM_SCALE[_metaData.Scale];
561
Int64 time = value.
Ticks
/ TdsEnums.TICKS_FROM_SCALE[scale];
585
Int64 time = utcDateTime.TimeOfDay.
Ticks
/ TdsEnums.TICKS_FROM_SCALE[scale];
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (1)
247
long ticks = value.
Ticks
- day * TimeSpan.TicksPerDay;
System.Data.Entity.Design (2)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (2)
779
new CodeObjectCreateExpression(TypeReference.TimeSpan, new CodePrimitiveExpression(dateTimeOffset.Offset.
Ticks
)));
785
return new CodeObjectCreateExpression(TypeReference.TimeSpan, new CodePrimitiveExpression(timeSpan.
Ticks
));
System.Data.Linq (1)
DbConvert.cs (1)
140
return Convert.ChangeType(((TimeSpan)value).
Ticks
, toType, Globalization.CultureInfo.InvariantCulture);
System.Management (8)
ManagementDatetime.cs (6)
201
long OffsetMins = tickOffset.
Ticks
/ System.TimeSpan.TicksPerMinute;
262
long OffsetMins = (tickOffset.
Ticks
/ System.TimeSpan.TicksPerMinute);
273
if ((tickOffset.
Ticks
>= 0))
275
UtcString = "+" + ((tickOffset.
Ticks
/ System.TimeSpan.TicksPerMinute)).ToString(frmInt32).PadLeft(3,'0');
450
System.Int64 microsec = ((timespan.
Ticks
-tsTemp.
Ticks
) * 1000) / System.TimeSpan.TicksPerMillisecond;
managementobjectcollection.cs (1)
543
int timeout = (collectionObject.options.Timeout.
Ticks
== Int64.MaxValue) ?
managementoptions.cs (1)
219
if (value.
Ticks
< 0)
System.Runtime.Caching (2)
System\Caching\MemoryCacheStatistics.cs (1)
227
SetTrimStats(sw.Elapsed.
Ticks
, beginTotalCount, trimmedOrExpired);
System\Caching\PhysicalMemoryMonitor.cs (1)
131
long ticksSinceTrim = utcNow.Subtract(lastTrimTime).
Ticks
;
System.Runtime.Serialization (6)
System\Runtime\Serialization\Json\JsonWriterDelegator.cs (3)
208
tickCount = value.Ticks - TimeZoneInfo.Local.GetUtcOffset(value).
Ticks
;
212
tickCount = value.Ticks - TimeZone.CurrentTimeZone.GetUtcOffset(value).
Ticks
;
238
if (ts.
Ticks
< 0)
System\Xml\XmlBinaryWriter.cs (2)
868
WriteTextNodeWithInt64(XmlBinaryNodeType.TimeSpanText, value.
Ticks
);
940
WriteInt64(array[offset + i].
Ticks
);
System\Xml\XmlConverter.cs (1)
1106
if (ts.
Ticks
< 0)
System.ServiceModel (13)
System\ServiceModel\Administration\WbemProvider.cs (1)
940
long microSeconds = (ts.
Ticks
% 1000) / 10;
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
41
new CodePrimitiveExpression(((TimeSpan)(object)value).
Ticks
));
System\ServiceModel\Channels\SocketConnection.cs (5)
1511
long threshold = oldTimeout.
Ticks
/ 10;
1512
long delta = Math.Max(oldTimeout.
Ticks
, newTimeout.
Ticks
) - Math.Min(oldTimeout.
Ticks
, newTimeout.
Ticks
);
System\ServiceModel\Security\InMemoryNonceCache.cs (1)
60
: base(lowWaterMark, maxCachedNonces, comparer, PurgingMode.AccessBasedPurge, TimeSpan.FromTicks(cachingTimeSpan.
Ticks
>> 2), false)
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
313
long serviceTokenTicksInterval = interval.
Ticks
;
System\ServiceModel\Security\NegotiationTokenAuthenticatorStateCache.cs (1)
21
: base(lowWaterMark, maximumCachedState, null, PurgingMode.TimerBasedPurge, TimeSpan.FromTicks(cachingSpan.
Ticks
>> 2), true)
System\ServiceModel\Security\Tokens\WindowsUserNameCachingSecurityTokenAuthenticator.cs (1)
31
: base((maxCachedLogonTokens * lowWaterMarkFactor) / 100, maxCachedLogonTokens, StringComparer.OrdinalIgnoreCase, PurgingMode.TimerBasedPurge, TimeSpan.FromTicks(cachedLogonTokenLifetime.
Ticks
>> 2), true)
System\ServiceModel\SpnEndpointIdentity.cs (2)
41
if (value.
Ticks
< 0)
43
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value.
Ticks
,
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\UdpRetransmissionSettings.cs (5)
267
long diff = Math.Abs(ts1.
Ticks
- ts2.
Ticks
);
268
long max = Math.Max(Math.Abs(ts1.
Ticks
), Math.Abs(ts2.
Ticks
));
269
return diff < TimeSpan.FromMilliseconds(1).
Ticks
|| (max > 0 && diff / (double) max < 1e-3);
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\RandomDelaySendsAsyncResult.cs (1)
71
this.delaysInTicks[i] = RandomDelay(innerRandom, maxDelay.
Ticks
);
System.ServiceModel.Internals (4)
System\Runtime\BackoffTimeoutHelper.cs (3)
111
if (waitTime.
Ticks
>= (maxWaitTime.
Ticks
/ 2))
117
waitTime = TimeSpan.FromTicks(waitTime.
Ticks
* 2);
System\Runtime\Ticks.cs (1)
39
return duration.
Ticks
;
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
516
if (ts.
Ticks
< 0)
System.Transactions (1)
System\Transactions\TransactionTable.cs (1)
200
long timeoutTicks = ((timeout.
Ticks
/ TimeSpan.TicksPerMillisecond) >>
System.Web (9)
HttpContext.cs (4)
1651
Interlocked.Exchange(ref _timeoutTicks, value.
Ticks
);
1706
ticks = cfg.ExecutionTimeout.
Ticks
;
1785
long expirationUtcTicks = Volatile.Read(ref _timeoutStartTimeUtcTicks) + Timeout.
Ticks
; // don't care about overflow
1819
long expirationUtcTicks = Volatile.Read(ref _timeoutStartTimeUtcTicks) + Timeout.
Ticks
; // don't care about overflow
HttpRuntime.cs (2)
1911
long milli = elapsed.
Ticks
/ TimeSpan.TicksPerMillisecond;
2400
long milli = elapsed.
Ticks
/ TimeSpan.TicksPerMillisecond;
State\StateRuntime.cs (2)
315
lockAge = (DateTime.UtcNow - content._utcLockDate).
Ticks
/ TimeSpan.TicksPerSecond;
487
timeout = (int)(content._slidingExpiration.
Ticks
/ TimeSpan.TicksPerMinute);
Util\altserialization.cs (1)
118
writer.Write(((TimeSpan) value).
Ticks
);
System.Web.DataVisualization (1)
Common\General\ChartElement.cs (1)
1326
if(lastMonthDay && span.
Ticks
== 0)
System.Windows.Forms.DataVisualization (1)
Common\General\ChartElement.cs (1)
1326
if(lastMonthDay && span.
Ticks
== 0)
System.Workflow.Activities (2)
Delay.cs (2)
159
if (delay.TimeoutDuration.
Ticks
< 0)
239
if (parsedTimespan != null && ((TimeSpan)parsedTimespan).
Ticks
< 0)
System.Workflow.ComponentModel (2)
AuthoringOM\Behaviors\WorkflowTransactionOptions.cs (1)
105
if (parsedTimespan.
Ticks
< 0)
AuthoringOM\Compiler\Validation\TransactionContextValidator.cs (1)
76
if (atomicTransaction.TimeoutDuration.
Ticks
< 0)
System.Xml (10)
System\Xml\BinaryXml\SqlUtils.cs (1)
659
if (zone.
Ticks
< 0) {
System\Xml\Schema\XsdDateTime.cs (5)
178
if (utcOffset.
Ticks
< 0) {
403
ticks = result.Ticks - new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0).
Ticks
;
407
ticks += TimeZoneInfo.Local.GetUtcOffset(result).
Ticks
;
416
ticks = result.Ticks + new TimeSpan(xdt.ZoneHour, xdt.ZoneMinute, 0).
Ticks
;
420
ticks += TimeZoneInfo.Local.GetUtcOffset(result).
Ticks
;
System\Xml\Schema\XsdDuration.cs (1)
82
long ticks = timeSpan.
Ticks
;
System\Xml\Serialization\CodeGenerator.cs (1)
1124
Ldc(((TimeSpan)o).
Ticks
); // ticks
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
3108
ilg.Ldc(default(TimeSpan).
Ticks
);
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3126
Writer.Write(((TimeSpan)value).
Ticks
.ToString(CultureInfo.InvariantCulture));