/**
  * Collect the finish Packet latency.
  *
  * @param packet the Packet.
  */
 public static void finishPacket(Packet packet) {
   if (isEnabled) {
     if (LOGGER.isDebugEnabled()) {
       LOGGER.debug(
           "finish packet latency = " + (System.currentTimeMillis() - packet.getCreateTime()));
     }
   }
 }
 /**
  * Init the packet for latency collect.
  *
  * @param packet the Packet.
  */
 public static void initPacket(Packet packet) {
   if (isEnabled) {
     packet.setCreateTime(System.currentTimeMillis());
   }
 }