Exemplo n.º 1
0
        public void ToTimespan()
        {
            var tv = new timeval { tv_sec = 4, tv_usec = 20000 };
            var ts = tv.ToTimeSpan();

            Assert.AreEqual(tv.tv_sec, ts.Seconds);
            Assert.AreEqual(tv.tv_usec, ts.Milliseconds * 1000);
        }
Exemplo n.º 2
0
 static extern unsafe int event_add(IntPtr evnt, timeval* tv);
Exemplo n.º 3
0
 static extern void  bufferevent_set_timeouts(IntPtr bev, ref timeval timeoutread, ref timeval timeoutwrite);
Exemplo n.º 4
0
 private static extern int event_base_gettimeofday_cached(IntPtr event_base, out timeval timeval);
Exemplo n.º 5
0
 private static extern int event_base_loopexit(IntPtr event_base, ref timeval timeval);
Exemplo n.º 6
0
 static unsafe extern int event_add(IntPtr evnt, timeval* tv);