static int timeCompare(Time t1, Time t2) { if (t1.Sec < t2.Sec) return 1; if (t1.Sec > t2.Sec) return -1; if (t1.NanoSec < t2.NanoSec) return 1; if (t1.NanoSec > t2.NanoSec) return -1; return 0; }
public ReturnCode GetCurrentTime(out Time current_time) { return realParticipant.GetCurrentTime(out current_time); }
public ReturnCode GetCurrentTime(out Time currentTime) { return Gapi.DomainParticipant.get_current_time( GapiPeer, out currentTime); }
static int timeCompare(Time t1, Time t2) { if (t1.Sec < t2.Sec) return C_LT; if (t1.Sec > t2.Sec) return C_GT; if (t1.NanoSec < t2.NanoSec) return C_LT; if (t1.NanoSec > t2.NanoSec) return C_GT; return C_EQ; }