Home
last modified time | relevance | path

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

/external/grpc-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 …]
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DTimespec.cs28 internal struct Timespec struct
37 public Timespec(long tv_sec, int tv_nsec) : this(tv_sec, tv_nsec, ClockType.Realtime) in Timespec() argument
41 public Timespec(long tv_sec, int tv_nsec, ClockType clock_type) in Timespec() argument
55 public static Timespec InfFuture argument
59 return new Timespec(long.MaxValue, 0, ClockType.Realtime);
66 public static Timespec InfPast argument
70 return new Timespec(long.MinValue, 0, ClockType.Realtime);
77 public static Timespec Now argument
110 public Timespec ToClockType(ClockType targetClock) in ToClockType() argument
171 public static Timespec FromDateTime(DateTime dateTime) in FromDateTime() argument
[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.cs454 …public delegate Timespec grpcsharp_request_call_context_deadline_delegate(RequestCallContextSafeHa… in grpcsharp_request_call_context_deadline_delegate()
486 …lags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline); in grpcsharp_channel_create_call_delegate()
488 …ate_delegate(ChannelSafeHandle channel, ChannelState lastObservedState, Timespec deadline, Complet… in grpcsharp_channel_watch_connectivity_state_delegate()
524 public delegate Timespec gprsharp_now_delegate(ClockType clockType); in gprsharp_now_delegate()
525 public delegate Timespec gprsharp_inf_future_delegate(ClockType clockType); in gprsharp_inf_future_delegate()
526 public delegate Timespec gprsharp_inf_past_delegate(ClockType clockType); in gprsharp_inf_past_delegate()
527 … public delegate Timespec gprsharp_convert_clock_type_delegate(Timespec t, ClockType targetClock); in gprsharp_convert_clock_type_delegate()
593 …public static extern Timespec grpcsharp_request_call_context_deadline(RequestCallContextSafeHandle… in grpcsharp_request_call_context_deadline()
689 …lags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline); in grpcsharp_channel_create_call()
695 …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.cs504 …details.Method, details.Host, Timespec.FromDateTime(details.Options.Deadline.Value), nativeCredent… in CreateNativeCall()
/external/rust/crates/chrono/src/
Dsys.rs36 pub struct Timespec { struct
41 impl Timespec { implementation
43 pub fn now() -> Timespec { in now()
46 Timespec { sec: st.as_secs() as i64, nsec: st.subsec_nanos() as i32 } in now()
119 pub fn to_timespec(&self) -> Timespec { in to_timespec() argument
124 Timespec { sec: sec, nsec: self.tm_nsec } in to_timespec()
/external/grpc-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;
/external/grpc-grpc/templates/src/csharp/Grpc.Core/Internal/
DNativeMethods.Generated.cs.template22 'Timespec grpcsharp_request_call_context_deadline(RequestCallContextSafeHandle ctx)',
54 …ags propagationMask, CompletionQueueSafeHandle cq, string method, string host, Timespec deadline)',
56 …tivity_state(ChannelSafeHandle channel, ChannelState lastObservedState, Timespec deadline, Complet…
92 'Timespec gprsharp_now(ClockType clockType)',
93 'Timespec gprsharp_inf_future(ClockType clockType)',
94 'Timespec gprsharp_inf_past(ClockType clockType)',
95 'Timespec gprsharp_convert_clock_type(Timespec t, ClockType targetClock)',
/external/rust/crates/chrono/src/offset/
Dlocal.rs7 use sys::{self, Timespec};
52 fn datetime_to_timespec(d: &NaiveDateTime, local: bool) -> sys::Timespec { in datetime_to_timespec() argument
102 tm_to_datetime(Timespec::now().local()) in now()
/external/chromium-trace/catapult/common/py_trace_event/py_trace_event/
Dtrace_time.py99 class Timespec(ctypes.Structure): class
105 ts = Timespec()
/external/grpc-grpc/src/csharp/Grpc.Core/
DChannel.cs155 …var deadlineTimespec = deadline.HasValue ? Timespec.FromDateTime(deadline.Value) : Timespec.InfFut… in TryWaitForStateChangedAsync()
/external/rust/crates/zip/src/
Dtypes.rs470 let clock = ::time::Timespec::new(1577836800, 0); in time_at_january()
/external/rust/crates/rusqlite/
DChangelog.md5 * BREAKING CHANGE: `ToSql` implementation for `time::Timespec` uses RFC 3339 (%Y-%m-%dT%H:%M:%S.%fZ…
33 * The ToSql/FromSql implementations for time::Timespec now include