         if @expect?
             expectResult = @expect.expect(eventName, args)
             if expectResult is 2
+                @stats.add('eventProcess', (new Date()).getTime()- @expectStartTime)
                 @_nextEvent()
 
     timeOutCheck : (time)->
-        if @expectStartTime? and time - @expectStartTime > 100*1000
+        if @expectStartTime? and time - @expectStartTime > 10*1000
             @_fatalErrorHandler("Timeout while expecting #{@expect.descriptor}")
         
 

    opts.eventDescriptors = eventDescriptors
    clientProcess = new ClientProcess(opts)    
    intervalObj = setInterval(()->
        clientProcess.computeStat()
        console.log JSON.stringify(clientProcess.stat)
        console.log JSON.stringify(clientProcess.otherStat)
        if clientProcess.isStopped()
            console.log "stopped"
            clearInterval(intervalObj)

            if not @browserConfig.appId? or not @browserConfig.browserId?
                @_fatalErrorHandler(new Error("Something is wrong, no browserid detected."))

            @stats.add('initialPage', @_timpeElapsed())
            @_createSocket()
            @_initialSocketIo()

    _initialSocketIo : ()->
        @_initStartTs()
        @socket.on('connect', ()=>
            @stats.add('socketIoConnect', @_timpeElapsed())
            @socket.emit('auth', @browserConfig.appId, @browserConfig.appInstanceId,
                @browserConfig.browserId)
            @_initStartTs()
