47 references to TicksPerSecond
mscorlib (20)
system\datetimeoffset.cs (5)
46
private const long UnixEpochSeconds = UnixEpochTicks / TimeSpan.
TicksPerSecond
; // 62,135,596,800
520
const long MinSeconds = DateTime.MinTicks / TimeSpan.
TicksPerSecond
- UnixEpochSeconds;
521
const long MaxSeconds = DateTime.MaxTicks / TimeSpan.
TicksPerSecond
- UnixEpochSeconds;
528
long ticks = seconds * TimeSpan.
TicksPerSecond
+ UnixEpochTicks;
683
long seconds = UtcDateTime.Ticks / TimeSpan.
TicksPerSecond
;
system\globalization\datetimeformat.cs (1)
1031
long fraction = dateTime.Ticks % TimeSpan.
TicksPerSecond
;
system\globalization\timespanformat.cs (4)
82
int seconds = (int)(time / TimeSpan.
TicksPerSecond
% 60);
83
int fraction = (int)(time % TimeSpan.
TicksPerSecond
);
159
int seconds = (int)(time / TimeSpan.
TicksPerSecond
% 60);
160
int fraction = (int)(time % TimeSpan.
TicksPerSecond
);
system\globalization\timespanparse.cs (2)
1495
time += unit * TimeSpan.
TicksPerSecond
;
1499
int f = (int)TimeSpan.
TicksPerSecond
;
system\runtime\remoting\soapinteroptypes.cs (2)
286
int t1 = (int)(timea % TimeSpan.
TicksPerSecond
);
378
Convert.ToInt64(Double.Parse(second+"."+fraction, CultureInfo.InvariantCulture)*(Double)TimeSpan.
TicksPerSecond
)
system\timespan.cs (6)
42
private const double SecondsPerTick = 1.0 /
TicksPerSecond
; // 0.0001
44
public const long TicksPerMinute =
TicksPerSecond
* 60; // 600,000,000
58
internal const long MaxSeconds = Int64.MaxValue /
TicksPerSecond
;
59
internal const long MinSeconds = Int64.MinValue /
TicksPerSecond
;
121
get { return (int)((_ticks /
TicksPerSecond
) % 60); }
278
return totalSeconds *
TicksPerSecond
;
PresentationCore (8)
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (1)
617
private const Int64 ThrottleTimeout = TimeSpan.
TicksPerSecond
* 5; // 5 seconds (in 100ns units) of no activity will throttle down
Core\CSharp\System\Windows\Media\MediaContext.cs (7)
94
return (long)(TimeSpan.
TicksPerSecond
* (counts / _perfCounterFreq) + (TimeSpan.
TicksPerSecond
* (counts % _perfCounterFreq)) / _perfCounterFreq);
105
return (long)(_perfCounterFreq * (ticks / TimeSpan.
TicksPerSecond
) + (_perfCounterFreq * (ticks % TimeSpan.
TicksPerSecond
)) / TimeSpan.
TicksPerSecond
);
953
return TimeSpan.
TicksPerSecond
/ _animationRenderRate;
3014
private const long MaxTicksWithoutInput = TimeSpan.
TicksPerSecond
/ 2;
System.Configuration (1)
System\Configuration\ValidatorUtils.cs (1)
103
ValidateResolution(TimeSpan.FromSeconds( resolutionInSeconds ).ToString(), value.Ticks, resolutionInSeconds * TimeSpan.
TicksPerSecond
);
System.Data (2)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
1934
long result = checked((long)seconds * TimeSpan.
TicksPerSecond
);
1970
long result = timerValue / TimeSpan.
TicksPerSecond
;
System.Data.Linq (5)
SqlClient\Query\SqlMethodCallConverter.cs (5)
871
SqlExpression TicksFromSeconds = sql.Multiply(seconds, TimeSpan.
TicksPerSecond
);
882
SqlExpression TicksFromSeconds = sql.Multiply(seconds, TimeSpan.
TicksPerSecond
);
2221
SqlExpression ticksFromSeconds = sql.Multiply(sql.ConvertToBigint(seconds), TimeSpan.
TicksPerSecond
);
2274
return sql.Divide(sql.ConvertToDouble(exp), TimeSpan.
TicksPerSecond
);
2316
return sql.ConvertToInt(sql.Mod(sql.ConvertToBigint(sql.Divide(exp, TimeSpan.
TicksPerSecond
)), 60));
System.ServiceModel (1)
System\ServiceModel\TimeSpanHelper.cs (1)
20
TimeSpan value = TimeSpan.FromTicks(TimeSpan.
TicksPerSecond
* seconds);
System.ServiceModel.Web (1)
System\ServiceModel\Web\IncomingWebRequestContext.cs (1)
192
if (ticksDifference < TimeSpan.
TicksPerSecond
)
System.Web (5)
HttpCachePolicy.cs (1)
1693
utcDate = new DateTime(utcDate.Ticks - (utcDate.Ticks % TimeSpan.
TicksPerSecond
));
OutputCacheModule.cs (2)
765
age = (int) ((context.UtcTimestamp.Ticks - settings.UtcTimestampCreated.Ticks) / TimeSpan.
TicksPerSecond
);
785
fresh = (int) ((settings.UtcExpires.Ticks - context.UtcTimestamp.Ticks) / TimeSpan.
TicksPerSecond
);
State\StateRuntime.cs (1)
315
lockAge = (DateTime.UtcNow - content._utcLockDate).Ticks / TimeSpan.
TicksPerSecond
;
StaticFileHandler.cs (1)
528
lastModifiedInUtc = new DateTime(utcNow.Ticks - (utcNow.Ticks % TimeSpan.
TicksPerSecond
), DateTimeKind.Utc);
System.Web.DataVisualization (1)
Common\General\ChartAreaAxes.cs (1)
1980
ticksInterval += (date2.Second - date1.Second) * TimeSpan.
TicksPerSecond
;
System.Windows.Forms.DataVisualization (1)
Common\General\ChartAreaAxes.cs (1)
1980
ticksInterval += (date2.Second - date1.Second) * TimeSpan.
TicksPerSecond
;
System.Xml (2)
System\Xml\Schema\XsdDuration.cs (2)
121
this.seconds = (int) ((ticksPos / (ulong) TimeSpan.
TicksPerSecond
) % 60);
322
ticks *= (ulong) TimeSpan.
TicksPerSecond
;