53 references to TicksPerMillisecond
mscorlib (17)
system\datetimeoffset.cs (5)
47
private const long UnixEpochMilliseconds = UnixEpochTicks / TimeSpan.
TicksPerMillisecond
; // 62,135,596,800,000
533
const long MinMilliseconds = DateTime.MinTicks / TimeSpan.
TicksPerMillisecond
- UnixEpochMilliseconds;
534
const long MaxMilliseconds = DateTime.MaxTicks / TimeSpan.
TicksPerMillisecond
- UnixEpochMilliseconds;
541
long ticks = milliseconds * TimeSpan.
TicksPerMillisecond
+ UnixEpochTicks;
690
long milliseconds = UtcDateTime.Ticks / TimeSpan.
TicksPerMillisecond
;
system\globalization\timespanparse.cs (1)
540
result = ((long)ticks * TimeSpan.
TicksPerMillisecond
) + f;
system\timespan.cs (10)
39
private const double MillisecondsPerTick = 1.0 /
TicksPerMillisecond
;
41
public const long TicksPerSecond =
TicksPerMillisecond
* 1000; // 10,000,000
61
internal const long MaxMilliSeconds = Int64.MaxValue /
TicksPerMillisecond
;
62
internal const long MinMilliSeconds = Int64.MinValue /
TicksPerMillisecond
;
64
internal const long TicksPerTenthSecond =
TicksPerMillisecond
* 100;
97
_ticks = (long)totalMilliSeconds *
TicksPerMillisecond
;
113
get { return (int)((_ticks /
TicksPerMillisecond
) % 1000); }
234
if ((millis > Int64.MaxValue /
TicksPerMillisecond
) || (millis < Int64.MinValue /
TicksPerMillisecond
))
236
return new TimeSpan((long)millis *
TicksPerMillisecond
);
system\timezoneinfo.cs (1)
3462
if (timeOfDayYear != 1 || timeOfDayMonth != 1 || timeOfDayDay != 1 || (timeOfDay.Ticks % TimeSpan.
TicksPerMillisecond
!= 0)) {
PresentationCore (2)
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 (1)
704
long earliestWakeupTicks = currentTicks + TicksUntilNextVsync(currentTicks) + TimeSpan.
TicksPerMillisecond
;
PresentationFramework (1)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
833
long timeSpan = (dtStop.Ticks - dtStart.Ticks) / TimeSpan.
TicksPerMillisecond
;
System.Data (7)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
1939
long result = checked(milliseconds * TimeSpan.
TicksPerMillisecond
);
1965
long result = timerValue / TimeSpan.
TicksPerMillisecond
;
fx\src\data\System\Data\ProviderBase\TimeoutTimer.cs (1)
69
timeout._originalTimerTicks = milliseconds * TimeSpan.
TicksPerMillisecond
;
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (4)
65
private const long TicksPerSecond = TimeSpan.
TicksPerMillisecond
* 1000;
221
millisecond * TimeSpan.
TicksPerMillisecond
);
234
long timeticks = ((long)(timepart / SQLTicksPerMillisecond + 0.5)) * TimeSpan.
TicksPerMillisecond
; //
254
int time = (int)((double)ticks / TimeSpan.
TicksPerMillisecond
* SQLTicksPerMillisecond + 0.5);
System.Data.Linq (6)
SqlClient\Query\SqlMethodCallConverter.cs (6)
891
SqlExpression ticksFromMs = sql.Multiply(milliseconds, TimeSpan.
TicksPerMillisecond
);
2222
SqlExpression ticksFromMs = sql.Multiply(sql.ConvertToBigint(milliseconds), TimeSpan.
TicksPerMillisecond
);
2264
return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.
TicksPerMillisecond
);
2311
return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.
TicksPerMillisecond
)), 1000));
2346
return sql.DATEADD("ms", sql.Mod(sql.Divide(sqlTicks, TimeSpan.
TicksPerMillisecond
), 86400000), daysAdded, source, asNullable);
2367
return sql.DATETIMEOFFSETADD("ms", sql.Mod(sql.Divide(sqlTicks, TimeSpan.
TicksPerMillisecond
), 86400000), daysAdded, source, asNullable);
System.Management (4)
ManagementDatetime.cs (4)
179
ticks = (System.Int64.Parse(tempString,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int64)))) * (System.TimeSpan.
TicksPerMillisecond
/1000);
295
System.Int64 microsec = ((date.Ticks-dtTemp.Ticks) * 1000) / System.TimeSpan.
TicksPerMillisecond
;
378
ticks = (System.Int64.Parse(tempString,(IFormatProvider)CultureInfo.InvariantCulture.GetFormat(typeof(System.Int64)))) * (System.TimeSpan.
TicksPerMillisecond
/1000);
450
System.Int64 microsec = ((timespan.Ticks-tsTemp.Ticks) * 1000) / System.TimeSpan.
TicksPerMillisecond
;
System.ServiceModel (3)
System\ServiceModel\Channels\SafeNativeMethods.cs (1)
53
return 15 * TimeSpan.
TicksPerMillisecond
;
System\ServiceModel\Channels\TransmissionStrategy.cs (1)
143
return (Ticks.Now / TimeSpan.
TicksPerMillisecond
) << Constants.TimeMultiplier;
System\ServiceModel\TimeSpanHelper.cs (1)
26
TimeSpan value = TimeSpan.FromTicks(TimeSpan.
TicksPerMillisecond
* ms);
System.ServiceModel.Internals (6)
System\Runtime\BackoffTimeoutHelper.cs (1)
12
readonly static int maxSkewMilliseconds = (int)(IOThreadTimer.SystemTimeResolutionTicks / TimeSpan.
TicksPerMillisecond
);
System\Runtime\IOThreadTimer.cs (2)
87
return 15 * TimeSpan.
TicksPerMillisecond
;
116
const long maxTimeToWaitForMoreTimers = 1000 * TimeSpan.
TicksPerMillisecond
;
System\Runtime\Ticks.cs (2)
29
return checked((long)milliseconds * TimeSpan.
TicksPerMillisecond
);
34
return checked((int)(ticks / TimeSpan.
TicksPerMillisecond
));
System\Runtime\TimeoutHelper.cs (1)
57
if (ticks / TimeSpan.
TicksPerMillisecond
> int.MaxValue)
System.Transactions (1)
System\Transactions\TransactionTable.cs (1)
200
long timeoutTicks = ((timeout.Ticks / TimeSpan.
TicksPerMillisecond
) >>
System.Web (3)
HttpRuntime.cs (2)
1911
long milli = elapsed.Ticks / TimeSpan.
TicksPerMillisecond
;
2400
long milli = elapsed.Ticks / TimeSpan.
TicksPerMillisecond
;
State\SessionStateModule.cs (1)
125
static readonly TimeSpan LOCKED_ITEM_POLLING_DELTA = new TimeSpan(250 * TimeSpan.
TicksPerMillisecond
);
System.Web.DataVisualization (1)
Common\General\ChartAreaAxes.cs (1)
1981
ticksInterval += (date2.Millisecond - date1.Millisecond) * TimeSpan.
TicksPerMillisecond
;
System.Windows.Forms.DataVisualization (1)
Common\General\ChartAreaAxes.cs (1)
1981
ticksInterval += (date2.Millisecond - date1.Millisecond) * TimeSpan.
TicksPerMillisecond
;
System.Xml (1)
System\Xml\BinaryXml\SqlUtils.cs (1)
800
millisecond * TimeSpan.
TicksPerMillisecond
) );