Author: toad
Date: 2008-09-04 17:38:26 +0000 (Thu, 04 Sep 2008)
New Revision: 22425

Modified:
   trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java
Log:
getStartTime()


Modified: trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java     2008-09-04 
17:13:36 UTC (rev 22424)
+++ trunk/freenet/src/freenet/io/comm/UdpSocketHandler.java     2008-09-04 
17:38:26 UTC (rev 22425)
@@ -44,6 +44,7 @@
        private final int listenPort;
        private final String title;
        private boolean _started;
+       private long startTime;
        private Thread _thread;
        private final IOStatisticCollector collector;

@@ -300,6 +301,7 @@
                synchronized(this) {
                        if(!_active) return;
                        _started = true;
+                       startTime = System.currentTimeMillis();
                }
                node.executor.execute(this, "UdpSocketHandler for port 
"+listenPort);
                if(!disableHangChecker) {
@@ -441,5 +443,9 @@
        public int getPriority() {
                return NativeThread.MAX_PRIORITY;
        }
+       
+       public long getStartTime() {
+               return startTime;
+       }

 }


Reply via email to