Index: trunk/src/libs/xpcom18a4/ipc/ipcd/client/public/ipcdclient.h
===================================================================
--- trunk/src/libs/xpcom18a4/ipc/ipcd/client/public/ipcdclient.h	(revision 102345)
+++ trunk/src/libs/xpcom18a4/ipc/ipcd/client/public/ipcdclient.h	(revision 102390)
@@ -54,5 +54,5 @@
 #include "ipcIClientObserver.h"
 
-#include "prinrval.h"
+#include <iprt/types.h>
 
 /* This API is only provided for the extensions compiled into the IPCDC
@@ -240,5 +240,5 @@
   ipcIMessageObserver *aObserver = nsnull,
   ipcIMessageObserver *aConsumer = nsnull,
-  PRIntervalTime       aTimeout = PR_INTERVAL_NO_TIMEOUT
+  RTMSINTERVAL        aTimeout = RT_INDEFINITE_WAIT
 );
 
Index: trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcService.cpp
===================================================================
--- trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcService.cpp	(revision 102345)
+++ trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcService.cpp	(revision 102390)
@@ -105,5 +105,5 @@
 {
     return IPC_WaitMessage(aSenderID, aTarget, aObserver, nsnull,
-                           PR_MillisecondsToInterval(aTimeout));
+                           aTimeout);
 }
 
Index: trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp
===================================================================
--- trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp	(revision 102345)
+++ trunk/src/libs/xpcom18a4/ipc/ipcd/client/src/ipcdclient.cpp	(revision 102390)
@@ -66,5 +66,5 @@
 /* ------------------------------------------------------------------------- */
 
-#define IPC_REQUEST_TIMEOUT PR_SecondsToInterval(30)
+#define IPC_REQUEST_TIMEOUT (30 * RT_MS_1SEC)
 
 /* ------------------------------------------------------------------------- */
@@ -307,5 +307,5 @@
 static nsresult
 WaitTarget(const nsID           &aTarget,
-           PRIntervalTime        aTimeout,
+           RTMSINTERVAL         aTimeout,
            ipcMessage          **aMsg,
            ipcMessageSelector    aSelector = nsnull,
@@ -323,9 +323,9 @@
   PRBool isIPCMTarget = aTarget.Equals(IPCM_TARGET);
 
-  PRIntervalTime timeStart = PR_IntervalNow();
-  PRIntervalTime timeEnd;
-  if (aTimeout == PR_INTERVAL_NO_TIMEOUT)
+  uint64_t timeStart = RTTimeMilliTS();
+  uint64_t timeEnd;
+  if (aTimeout == RT_INDEFINITE_WAIT)
     timeEnd = aTimeout;
-  else if (aTimeout == PR_INTERVAL_NO_WAIT)
+  else if (aTimeout == 0)
     timeEnd = timeStart;
   else
@@ -335,5 +335,5 @@
     // if overflowed, then set to max value
     if (timeEnd < timeStart)
-      timeEnd = PR_INTERVAL_NO_TIMEOUT;
+      timeEnd = RT_INDEFINITE_WAIT;
   }
 
@@ -440,5 +440,5 @@
 #endif /* VBOX */
 
-    PRIntervalTime t = PR_IntervalNow();
+    uint64_t t = RTTimeMilliTS();
     if (t > timeEnd) // check if timeout has expired
     {
@@ -1081,5 +1081,5 @@
                 ipcIMessageObserver *aObserver,
                 ipcIMessageObserver *aConsumer,
-                PRIntervalTime       aTimeout)
+                RTMSINTERVAL        aTimeout)
 {
   NS_ENSURE_TRUE(gClientState, NS_ERROR_NOT_INITIALIZED);
Index: trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp
===================================================================
--- trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp	(revision 102345)
+++ trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp	(revision 102390)
@@ -96,5 +96,5 @@
 //-----------------------------------------------------------------------------
 
-#define DCON_WAIT_TIMEOUT PR_INTERVAL_NO_TIMEOUT
+#define DCON_WAIT_TIMEOUT RT_INDEFINITE_WAIT
 
 //-----------------------------------------------------------------------------
@@ -1281,9 +1281,9 @@
     {
         uClient = aClient;
-        uTimestamp = PR_IntervalNow();
+        uTimestamp = RTTimeMilliTS();
     }
 
     PRUint32 uClient;
-    PRIntervalTime uTimestamp;
+    uint64_t uTimestamp;
 } ClientDownInfo;
 typedef std::map<PRUint32, ClientDownInfo *> ClientDownMap;
@@ -1326,5 +1326,5 @@
         // Insert new client down information. Start by expiring outdated
         // entries and free one element if there's still no space (if needed).
-        PRIntervalTime now = PR_IntervalNow();
+        uint64_t now = RTTimeMilliTS();
         while (!g_ClientDownList.empty())
         {
@@ -1332,6 +1332,6 @@
             PRInt64 diff = (PRInt64)now - cInfo->uTimestamp;
             if (diff < 0)
-                diff += (PRInt64)((PRIntervalTime)-1) + 1;
-            if (diff > PR_SecondsToInterval(15 * 60))
+                diff += (PRInt64)((uint64_t)-1) + 1;
+            if (diff > 15 * 60 * RT_MS_1SEC)
             {
                 g_ClientDownMap.erase(cInfo->uClient);
@@ -3557,7 +3557,6 @@
     mon.Exit();
     {
-      PRUint32 ticks = PR_MillisecondsToInterval(PR_MIN(mWorkers.Count() / 20 + 1, 10));
       nsAutoMonitor workersMon(mWaitingWorkersMon);
-      workersMon.Wait(ticks);
+      workersMon.Wait(PR_MIN(mWorkers.Count() / 20 + 1, 10));
     }
     mon.Enter();
Index: trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/lock/src/ipcLockService.cpp
===================================================================
--- trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/lock/src/ipcLockService.cpp	(revision 102345)
+++ trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/lock/src/ipcLockService.cpp	(revision 102390)
@@ -109,5 +109,5 @@
         do {
             // block the calling thread until we get a response from the daemon
-            rv = IPC_WaitMessage(0, kLockTargetID, this, nsnull, PR_INTERVAL_NO_TIMEOUT);
+            rv = IPC_WaitMessage(0, kLockTargetID, this, nsnull, RT_INDEFINITE_WAIT);
         }
         while (NS_SUCCEEDED(rv) && !pendingLock.complete);
Index: trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp
===================================================================
--- trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp	(revision 102345)
+++ trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/src/tmTransactionService.cpp	(revision 102390)
@@ -328,5 +328,5 @@
                   aTrans->GetRawMessageLength());
   if (aSync)
-    IPC_WaitMessage(0, kTransModuleID, nsnull, nsnull, PR_INTERVAL_NO_TIMEOUT);
+    IPC_WaitMessage(0, kTransModuleID, nsnull, nsnull, RT_INDEFINITE_WAIT);
 }
 
