Home
last modified time | relevance | path

Searched refs:Timespec (Results 1 – 10 of 10) sorted by relevance

/third_party/grpc/src/csharp/Grpc.Core.Tests/Internal/
DTimespecTest.cs32 Assert.AreEqual(DateTimeKind.Utc, Timespec.Now.ToDateTime().Kind); in Now_IsInUtc()
38 var timespec = Timespec.Now; in Now_AgreesWithUtcNow()
51 Assert.AreEqual(Timespec.NativeInfFuture, Timespec.InfFuture); in InfFutureMatchesNativeValue()
57 Assert.AreEqual(Timespec.NativeInfPast, Timespec.InfPast); in InfPastMatchesNativeValue()
65 Assert.AreEqual(Timespec.NativeSize, Marshal.SizeOf(typeof(Timespec))); in TimespecSizeIsNativeSize()
73 new Timespec(0, 0).ToDateTime()); in ToDateTime()
76 new Timespec(10, 5000).ToDateTime()); in ToDateTime()
79 new Timespec(1437452508, 0).ToDateTime()); in ToDateTime()
83 new Timespec(-5, 1000).ToDateTime()); in ToDateTime()
86 Assert.AreEqual(DateTime.MaxValue, Timespec.InfFuture.ToDateTime()); in ToDateTime()
[all …]
/third_party/grpc/src/csharp/Grpc.Core/Internal/
DTimespec.cs28 internal struct Timespec : IEquatable<Timespec> struct
35 return obj is Timespec && Equals((Timespec)obj); in Equals()
58 return typeof(Timespec).FullName; in ToString()
64 public bool Equals(Timespec other) in Equals() argument
78 public Timespec(long tv_sec, int tv_nsec) : this(tv_sec, tv_nsec, ClockType.Realtime) in Timespec() method
82 public Timespec(long tv_sec, int tv_nsec, ClockType clock_type) in Timespec() method
96 public static Timespec InfFuture argument
100 return new Timespec(long.MaxValue, 0, ClockType.Realtime);
107 public static Timespec InfPast argument
111 return new Timespec(long.MinValue, 0, ClockType.Realtime);
[all …]
DServerRpcNew.cs33 readonly Timespec deadline;
36 …rRpcNew(Server server, CallSafeHandle call, string method, string host, Timespec deadline, Metadat… in ServerRpcNew()
78 public Timespec Deadline
DNativeMethods.Generated.cs923 …public delegate Timespec grpcsharp_request_call_context_deadline_delegate(RequestCallContextSafeHa… in grpcsharp_request_call_context_deadline_delegate()
955 …lags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline); in grpcsharp_channel_create_call_delegate()
957 …ate_delegate(ChannelSafeHandle channel, ChannelState lastObservedState, Timespec deadline, Complet… in grpcsharp_channel_watch_connectivity_state_delegate()
1000 public delegate Timespec gprsharp_now_delegate(ClockType clockType); in gprsharp_now_delegate()
1001 public delegate Timespec gprsharp_inf_future_delegate(ClockType clockType); in gprsharp_inf_future_delegate()
1002 public delegate Timespec gprsharp_inf_past_delegate(ClockType clockType); in gprsharp_inf_past_delegate()
1003 … public delegate Timespec gprsharp_convert_clock_type_delegate(Timespec t, ClockType targetClock); in gprsharp_convert_clock_type_delegate()
1073 …public static extern Timespec grpcsharp_request_call_context_deadline(RequestCallContextSafeHandle… in grpcsharp_request_call_context_deadline()
1169 …lags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline); in grpcsharp_channel_create_call()
1175 …tivity_state(ChannelSafeHandle channel, ChannelState lastObservedState, Timespec deadline, Complet… in grpcsharp_channel_watch_connectivity_state()
[all …]
DChannelSafeHandle.cs51 …pagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline, CallCre… in CreateCall()
67 …public void WatchConnectivityState(ChannelState lastObservedState, Timespec deadline, CompletionQu… in WatchConnectivityState()
DAsyncCall.cs508 …details.Method, details.Host, Timespec.FromDateTime(details.Options.Deadline.Value), nativeCredent… in CreateNativeCall()
/third_party/grpc/templates/src/csharp/Grpc.Core/Internal/
Dnative_methods.include21 'Timespec grpcsharp_request_call_context_deadline(RequestCallContextSafeHandle ctx)',
53 …ags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline)',
55 …tivity_state(ChannelSafeHandle channel, ChannelState lastObservedState, Timespec deadline, Complet…
98 'Timespec gprsharp_now(ClockType clockType)',
99 'Timespec gprsharp_inf_future(ClockType clockType)',
100 'Timespec gprsharp_inf_past(ClockType clockType)',
101 'Timespec gprsharp_convert_clock_type(Timespec t, ClockType targetClock)',
/third_party/grpc/src/csharp/Grpc.Core/Profiling/
DProfilers.cs79 AddEntry(new ProfilerEntry(Timespec.PreciseNow, ProfilerEntry.Type.BEGIN, tag)); in Begin()
84 AddEntry(new ProfilerEntry(Timespec.PreciseNow, ProfilerEntry.Type.END, tag)); in End()
89 AddEntry(new ProfilerEntry(Timespec.PreciseNow, ProfilerEntry.Type.MARK, tag)); in Mark()
DProfilerEntry.cs35 public ProfilerEntry(Timespec timespec, Type type, string tag) in ProfilerEntry()
42 public Timespec timespec;
/third_party/grpc/src/csharp/Grpc.Core/
DChannel.cs153 …var deadlineTimespec = deadline.HasValue ? Timespec.FromDateTime(deadline.Value) : Timespec.InfFut… in TryWaitForStateChangedAsync()