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