mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

boli
18.37.2008 5d6b56353ce3a2816410052d4b2b531c0c676c06
opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -572,6 +572,9 @@
  // a search.
  private int lookthroughLimit;
  // Whether to use collect operation processing times in nanosecond resolution
  private boolean useNanoTime;
  // The key manager provider configuration manager for the Directory Server.
  private KeyManagerProviderConfigManager keyManagerProviderConfigManager;
@@ -8913,6 +8916,36 @@
  /**
   * Specifies whether to collect nanosecond resolution processing times for
   * operations.
   *
   * @param useNanoTime  <code>true</code> if nanosecond resolution times
   *                     should be collected or <code>false</code> to
   *                     only collect in millisecond resolution.
   */
  public static void setUseNanoTime(boolean useNanoTime)
  {
    directoryServer.useNanoTime = useNanoTime;
  }
  /**
   * Retrieves whether operation processing times should be collected with
   * nanosecond resolution.
   *
   * @return  <code>true</code> if nanosecond resolution times are collected
   *          or <code>false</code> if only millisecond resolution times are
   *          being collected.
   */
  public static boolean getUseNanoTime()
  {
    return directoryServer.useNanoTime;
  }
  /**
   * Retrieves the writability mode for the Directory Server.  This will only
   * be applicable for user suffixes.
   *