 
   printConnectionInfo : ->
 
-    interval = new Date() - @lastPingTime
-    #if @queue.queue and @queue.queue.length > 0
-      #console.log interval, @queueStatus - @queue.queue.length, @queue.queue[0].priority
+    currentDate = new Date()
+    interval = currentDate - @lastPingTime
+    if @queue.queue and @queue.queue.length > 0
+      console.log interval, @queueStatus - @queue.queue.length, @queue.queue[0].priority
     @queueStatus = @queue.queue.length
-    @lastPingTime = new Date() 
+    @lastPingTime = currentDate 
 
     kbPerSecond = @queue.loadedBytes / interval
     bucketsPerSocond = @queue.loadedBuckets * 1000 / interval
     
-    @timestamps.push(new Date().getTime())
+    @timestamps.push(currentDate)
     @latencies.push(@queue.roundTripTime)
     @kbPerSec.push(kbPerSecond)
     @bucketPerSec.push(bucketsPerSocond)

  pingStop : ->

    @queue.clear()


  pingImpl : (position, {zoomStep, area, activePlane}) ->

      set4BitChanged : (is4Bit) => @queue(is4Bit)
    })


  updateContrastCurve : (brightness, contrast) ->

