Beispiel #1
0
 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);
 }
Beispiel #3
0
 public ReturnCode GetCurrentTime(out Time currentTime)
 {
     return Gapi.DomainParticipant.get_current_time(
             GapiPeer,
             out currentTime);
 }
Beispiel #4
0
	    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;
	    }