/external/perfetto/ui/src/common/ |
D | time_unittest.ts | 15 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)))
|
D | time.ts | 80 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) {
|
D | engine.ts | 22 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/ |
D | TimeStats.cs | 42 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()
|
D | InterarrivalTimers.cs | 97 private TimeSpan GetNextWaitDuration() in GetNextWaitDuration() 105 … this.lastEventTime = origLastEventTime + TimeSpan.FromSeconds(exponentialDistribution.Next()); in GetNextWaitDuration()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/ |
D | DurationTest.cs | 43 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/ |
D | DurationTest.cs | 43 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/ |
D | time_scale.ts | 16 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);
|
D | time_scale_unittest.ts | 15 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);
|
D | frontend_local_state.ts | 25 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) {
|
D | gridline_helper.ts | 15 import {TimeSpan} from '../common/time'; 69 export function gridlines(width: number, span: TimeSpan, timescale: TimeScale): 97 timeSpan: TimeSpan,
|
D | time_selection_panel.ts | 18 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) {
|
D | scroll_helper.ts | 17 import {fromNs, TimeSpan, toNs} from '../common/time'; 33 globals.frontendLocalState.updateVisibleTime(new TimeSpan( 55 new TimeSpan(startTs - (selectDur * 2), endTs + (selectDur * 2)));
|
D | logs_panel.ts | 26 import {TimeSpan} from '../common/time'; 98 const leftSpan = new TimeSpan(startTs, firstRowTs); 99 const rightSpan = new TimeSpan(lastRowTs, endTs);
|
D | overview_timeline_panel.ts | 19 import {TimeSpan, timeToString} from '../common/time'; 37 private totTime = new TimeSpan(0, 0); 45 this.totTime = new TimeSpan(
|
D | viewer_page.ts | 18 import {TimeSpan} from '../common/time'; 115 frontendLocalState.updateVisibleTime(new TimeSpan(tStart, tEnd));
|
/external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/ |
D | DurationPartial.cs | 85 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()
|
D | TimestampPartial.cs | 137 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()
|
D | TimeExtensions.cs | 71 public static Duration ToDuration(this TimeSpan timeSpan) in ToDuration()
|
/external/perfetto/ui/src/controller/ |
D | logs_controller.ts | 24 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);
|
D | search_controller.ts | 19 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/ |
D | drag_strategy.ts | 14 import {TimeSpan} from '../../common/time'; 26 const vizTime = new TimeSpan(tStart, tEnd);
|
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/ |
D | TimeoutsTest.cs | 76 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/ |
D | TestFastLexer.cs | 65 TimeSpan Iterate( string text, int count ) in Iterate() 79 TimeSpan IterateFast( string text, int count ) in IterateFast()
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
D | LzmaBench.cs | 174 UInt64 freq = TimeSpan.TicksPerSecond; in MyMultDiv64() 298 TimeSpan sp2 = DateTime.UtcNow - progressInfo.Time; in LzmaBenchmark() 315 TimeSpan sp = (DateTime.UtcNow - startTime); in LzmaBenchmark()
|