Home
last modified time | relevance | path

Searched refs:TimeSpan (Results 1 – 24 of 24) sorted by relevance

/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DTimeStats.cs42 TimeSpan lastUserTime;
43 TimeSpan lastPrivilegedTime;
73 public TimeSpan WallClockTime { get; }
74 public TimeSpan UserProcessorTime { get; }
75 public TimeSpan PrivilegedProcessorTime { get; }
77 …public Snapshot(TimeSpan wallClockTime, TimeSpan userProcessorTime, TimeSpan privilegedProcessorTi… in Snapshot()
DInterarrivalTimers.cs97 private TimeSpan GetNextWaitDuration() in GetNextWaitDuration()
105 … this.lastEventTime = origLastEventTime + TimeSpan.FromSeconds(exponentialDistribution.Next()); in GetNextWaitDuration()
DStressTestClient.cs109 finishedTokenSource.CancelAfter(TimeSpan.FromSeconds(options.TestDurationSecs)); in Run()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DDurationTest.cs43 Assert.AreEqual(TimeSpan.FromSeconds(1), new Duration { Seconds = 1 }.ToTimeSpan()); in ToTimeSpan()
44 Assert.AreEqual(TimeSpan.FromSeconds(-1), new Duration { Seconds = -1 }.ToTimeSpan()); in ToTimeSpan()
45 … Assert.AreEqual(TimeSpan.FromMilliseconds(1), new Duration { Nanos = 1000000 }.ToTimeSpan()); in ToTimeSpan()
46 … Assert.AreEqual(TimeSpan.FromMilliseconds(-1), new Duration { Nanos = -1000000 }.ToTimeSpan()); in ToTimeSpan()
47 Assert.AreEqual(TimeSpan.FromTicks(1), new Duration { Nanos = 100 }.ToTimeSpan()); in ToTimeSpan()
48 Assert.AreEqual(TimeSpan.FromTicks(-1), new Duration { Nanos = -100 }.ToTimeSpan()); in ToTimeSpan()
51 Assert.AreEqual(TimeSpan.FromTicks(2), new Duration { Nanos = 250 }.ToTimeSpan()); in ToTimeSpan()
52 Assert.AreEqual(TimeSpan.FromTicks(-2), new Duration { Nanos = -250 }.ToTimeSpan()); in ToTimeSpan()
95 … Assert.AreEqual(new Duration { Seconds = 1 }, Duration.FromTimeSpan(TimeSpan.FromSeconds(1))); in FromTimeSpan()
96 …ew Duration { Nanos = Duration.NanosecondsPerTick }, Duration.FromTimeSpan(TimeSpan.FromTicks(1))); in FromTimeSpan()
/external/perfetto/ui/src/frontend/
Dtime_scale.ts15 import {TimeSpan} from '../common/time';
25 private timeBounds: TimeSpan;
30 constructor(timeBounds: TimeSpan, boundsPx: [number, number]) {
57 setTimeBounds(timeBounds: TimeSpan) {
82 scale: TimeScale, span: TimeSpan, zoomFactor: number, zoomPx: number):
83 TimeSpan {
94 return new TimeSpan(newStartTime, newEndTime);
Dtime_scale_unittest.ts15 import {TimeSpan} from '../common/time';
20 const scale = new TimeScale(new TimeSpan(0, 100), [200, 1000]);
41 const scale = new TimeScale(new TimeSpan(0, 100), [100, 1000]);
49 scale.setTimeBounds(new TimeSpan(0, 200));
56 const span = new TimeSpan(0, 20);
64 const span = new TimeSpan(1000, 1020);
72 const span = new TimeSpan(1000, 1040);
Dfrontend_local_state.ts17 import {TimeSpan} from '../common/time';
27 visibleWindowTime = new TimeSpan(0, 10);
41 updateVisibleTime(ts: TimeSpan) {
44 this.visibleWindowTime = new TimeSpan(startSec, endSec);
68 this.updateVisibleTime(new TimeSpan(visible.startSec, visible.endSec));
Dgridline_helper.ts15 import {TimeSpan} from '../common/time';
69 export function gridlines(width: number, span: TimeSpan, timescale: TimeScale):
88 timeSpan: TimeSpan,
Doverview_timeline_panel.ts18 import {TimeSpan, timeToString} from '../common/time';
31 private totTime = new TimeSpan(0, 0);
37 this.totTime = new TimeSpan(
124 const vizTime = new TimeSpan(tStart, tEnd);
Dtime_selection_panel.ts18 import {TimeSpan} from '../common/time';
102 this.renderSpan(ctx, size, new TimeSpan(start, end));
106 renderSpan(ctx: CanvasRenderingContext2D, size: PanelSize, span: TimeSpan) {
Dlogs_panel.ts26 import {TimeSpan} from '../common/time';
98 const leftSpan = new TimeSpan(startTs, firstRowTs);
99 const rightSpan = new TimeSpan(lastRowTs, endTs);
Dviewer_page.ts20 import {TimeSpan} from '../common/time';
227 frontendLocalState.updateVisibleTime(new TimeSpan(tStart, tEnd));
/external/perfetto/ui/src/common/
Dtime.ts67 export class TimeSpan { class
78 return new TimeSpan(this.start, this.end);
81 equals(other: TimeSpan) {
93 add(sec: number): TimeSpan {
94 return new TimeSpan(this.start + sec, this.end + sec);
Dengine.ts16 import {TimeSpan} from './time';
82 async getTraceTimeBounds(): Promise<TimeSpan> {
85 return new TimeSpan(res[0] / 1e9, res[1] / 1e9);
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
DDurationPartial.cs85 public TimeSpan ToTimeSpan() in ToTimeSpan()
93 long ticks = Seconds * TimeSpan.TicksPerSecond + Nanos / NanosecondsPerTick; in ToTimeSpan()
94 return TimeSpan.FromTicks(ticks); in ToTimeSpan()
103 public static Duration FromTimeSpan(TimeSpan timeSpan) in FromTimeSpan()
108 long seconds = ticks / TimeSpan.TicksPerSecond; in FromTimeSpan()
109 int nanos = (int) (ticks % TimeSpan.TicksPerSecond) * NanosecondsPerTick; in FromTimeSpan()
DTimestampPartial.cs137 return new DateTimeOffset(ToDateTime(), TimeSpan.Zero); in ToDateTimeOffset()
153 long secondsSinceBclEpoch = dateTime.Ticks / TimeSpan.TicksPerSecond; in FromDateTime()
154 … int nanoseconds = (int) (dateTime.Ticks % TimeSpan.TicksPerSecond) * Duration.NanosecondsPerTick; in FromDateTime()
DTimeExtensions.cs75 public static Duration ToDuration(this TimeSpan timeSpan) in ToDuration()
/external/perfetto/ui/src/controller/
Dlogs_controller.ts23 import {fromNs, TimeSpan} from '../common/time';
29 engine: Engine, span: TimeSpan): Promise<LogBounds> {
64 engine: Engine, span: TimeSpan, pagination: Pagination):
148 private span: TimeSpan;
155 this.span = new TimeSpan(0, 10);
175 const newSpan = new TimeSpan(traceTime.startSec, traceTime.endSec);
Dtrace_controller.ts27 import {TimeSpan} from '../common/time';
512 private async loadTimelineOverview(traceTime: TimeSpan) {
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DTimeoutsTest.cs76 var clientDeadline = DateTime.UtcNow + TimeSpan.FromDays(7); in DeadlineTransferredToServer()
112 …ll(helper.CreateUnaryCall(new CallOptions(deadline: DateTime.UtcNow.Add(TimeSpan.FromSeconds(5))))… in DeadlineExceededStatusOnTimeout()
132 …ll(helper.CreateUnaryCall(new CallOptions(deadline: DateTime.UtcNow.Add(TimeSpan.FromSeconds(5))))… in ServerReceivesCancellationOnTimeout()
/external/antlr/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
DTestFastLexer.cs65 TimeSpan Iterate( string text, int count ) in Iterate()
79 TimeSpan IterateFast( string text, int count ) in IterateFast()
/external/lzma/CS/7zip/Compress/LzmaAlone/
DLzmaBench.cs174 UInt64 freq = TimeSpan.TicksPerSecond; in MyMultDiv64()
298 TimeSpan sp2 = DateTime.UtcNow - progressInfo.Time; in LzmaBenchmark()
315 TimeSpan sp = (DateTime.UtcNow - startTime); in LzmaBenchmark()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DTimespec.cs187 TimeSpan timeSpan = dateTime - UnixEpoch; in FromDateTime()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/Internal/
DTimespecTest.cs41 TimeSpan difference = utcNow - timespec.ToDateTime(); in Now_AgreesWithUtcNow()