static extern Timespec gprsharp_inf_future(GPRClockType clockType);
static extern Timespec gprsharp_inf_past(GPRClockType clockType);
public Timespec(IntPtr tv_sec, int tv_nsec) { this.tv_sec = tv_sec; this.tv_nsec = tv_nsec; this.clock_type = GPRClockType.Realtime; }
static extern Timespec gprsharp_now(GPRClockType clockType);
static extern Timespec gprsharp_convert_clock_type(Timespec t, GPRClockType targetClock);
public Timespec(IntPtr tv_sec, int tv_nsec, GPRClockType clock_type) { this.tv_sec = tv_sec; this.tv_nsec = tv_nsec; this.clock_type = clock_type; }
static extern Timespec gprsharp_now(GPRClockType clockType);
Timespec IPlatformInvocation.gprsharp_inf_past(GPRClockType clockType) { return gprsharp_inf_past(clockType); }
public Timespec(long tv_sec, int tv_nsec, GPRClockType clock_type) { this.tv_sec = tv_sec; this.tv_nsec = tv_nsec; this.clock_type = clock_type; }
/// <summary> /// Converts the timespec to desired clock type. /// </summary> public Timespec ToClockType(GPRClockType targetClock) { return(gprsharp_convert_clock_type(this, targetClock)); }
Timespec IPlatformInvocation.gprsharp_convert_clock_type(Timespec t, GPRClockType targetClock) { return(gprsharp_convert_clock_type(t, targetClock)); }
Timespec IPlatformInvocation.gprsharp_inf_past(GPRClockType clockType) { return(gprsharp_inf_past(clockType)); }
Timespec IPlatformInvocation.gprsharp_now(GPRClockType clockType) { return(gprsharp_now(clockType)); }
static extern Timespec gprsharp_convert_clock_type(Timespec t, GPRClockType targetClock);
static extern Timespec gprsharp_inf_future(GPRClockType clockType);
Timespec IPlatformInvocation.gprsharp_now(GPRClockType clockType) { return gprsharp_now(clockType); }
/// <summary> /// Converts the timespec to desired clock type. /// </summary> public Timespec ToClockType(GPRClockType targetClock) { return gprsharp_convert_clock_type(this, targetClock); }
Timespec IPlatformInvocation.gprsharp_convert_clock_type(Timespec t, GPRClockType targetClock) { return gprsharp_convert_clock_type(t, targetClock); }
static extern Timespec gprsharp_inf_past(GPRClockType clockType);