Home
last modified time | relevance | path

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

12

/external/perfetto/ui/src/common/
Dtime_unittest.ts15 import {TimeSpan, timeToCode} from './time';
33 expect((new TimeSpan(0, 1)).equals(new TimeSpan(0, 1))).toBe(true);
34 expect((new TimeSpan(0, 1)).equals(new TimeSpan(0, 2))).toBe(false);
35 expect((new TimeSpan(0, 1)).equals(new TimeSpan(0, 1 + Number.EPSILON)))
Dtime.ts80 export class TimeSpan { class
91 return new TimeSpan(this.start, this.end);
94 equals(other: TimeSpan): boolean {
107 add(sec: number): TimeSpan {
108 return new TimeSpan(this.start + sec, this.end + sec);
111 contains(other: TimeSpan) {
Dengine.ts22 import {TimeSpan} from './time';
175 async getTraceTimeBounds(): Promise<TimeSpan> {
178 return new TimeSpan(res[0] / 1e9, res[1] / 1e9);
181 async getTracingMetadataTimeBounds(): Promise<TimeSpan> {
199 return new TimeSpan(startBound, endBound);
/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()
/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/protobuf/csharp/compatibility_tests/v3.0.0/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.ts16 import {TimeSpan} from '../common/time';
26 private timeBounds: TimeSpan;
31 constructor(timeBounds: TimeSpan, boundsPx: [number, number]) {
58 setTimeBounds(timeBounds: TimeSpan) {
85 scale: TimeScale, span: TimeSpan, zoomFactor: number, zoomPx: number):
86 TimeSpan {
97 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.ts25 import {TimeSpan} from '../common/time';
66 visibleWindowTime = new TimeSpan(0, 10);
205 new TimeSpan(this._visibleState.startSec, this._visibleState.endSec));
246 private updateLocalTime(ts: TimeSpan) {
250 this.visibleWindowTime = new TimeSpan(startSec, endSec);
261 updateVisibleTime(ts: TimeSpan) {
Dgridline_helper.ts15 import {TimeSpan} from '../common/time';
69 export function gridlines(width: number, span: TimeSpan, timescale: TimeScale):
97 timeSpan: TimeSpan,
Dtime_selection_panel.ts18 import {TimeSpan} from '../common/time';
137 this.renderSpan(ctx, size, new TimeSpan(start, end));
142 this.renderSpan(ctx, size, new TimeSpan(start, end));
158 new TimeSpan(selectedArea.startSec, selectedArea.endSec));
172 renderSpan(ctx: CanvasRenderingContext2D, size: PanelSize, span: TimeSpan) {
Dscroll_helper.ts17 import {fromNs, TimeSpan, toNs} from '../common/time';
33 globals.frontendLocalState.updateVisibleTime(new TimeSpan(
55 new TimeSpan(startTs - (selectDur * 2), endTs + (selectDur * 2)));
Dlogs_panel.ts26 import {TimeSpan} from '../common/time';
98 const leftSpan = new TimeSpan(startTs, firstRowTs);
99 const rightSpan = new TimeSpan(lastRowTs, endTs);
Doverview_timeline_panel.ts19 import {TimeSpan, timeToString} from '../common/time';
37 private totTime = new TimeSpan(0, 0);
45 this.totTime = new TimeSpan(
Dviewer_page.ts18 import {TimeSpan} from '../common/time';
115 frontendLocalState.updateVisibleTime(new TimeSpan(tStart, tEnd));
/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.cs71 public static Duration ToDuration(this TimeSpan timeSpan) in ToDuration()
/external/perfetto/ui/src/controller/
Dlogs_controller.ts24 import {fromNs, TimeSpan, toNsCeil, toNsFloor} from '../common/time';
30 engine: Engine, span: TimeSpan): Promise<LogBounds> {
65 engine: Engine, span: TimeSpan, pagination: Pagination):
149 private span: TimeSpan;
157 this.span = new TimeSpan(0, 10);
181 const newSpan = new TimeSpan(traceTime.startSec, traceTime.endSec);
Dsearch_controller.ts19 import {TimeSpan} from '../common/time';
40 private previousSpan: TimeSpan;
50 this.previousSpan = new TimeSpan(0, 1);
81 const newSpan = new TimeSpan(visibleState.startSec, visibleState.endSec);
89 this.previousSpan = new TimeSpan(
/external/perfetto/ui/src/frontend/drag/
Ddrag_strategy.ts14 import {TimeSpan} from '../../common/time';
26 const vizTime = new TimeSpan(tStart, tEnd);
/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()

12