code: public static void main(String[] argv) throws IOException {
      if (argv.length != 2) {
        System.err.println("Wrong parameters, exit immediately");
        return;
      }
      
      ChronosClient chronosClient = null;
      try {
        chronosClient = new ChronosClient(argv[0], argv[1]);
        System.out.println("Get timestamp " + chronosClient.getTimestamp());
      } catch (IOException e) {
        System.err.println("Error to connect with ZooKeeper or ChronosServer, check the configuration");
      } finally {
        chronosClient.close();
      }
    }
docs: The command-line tool to use ChronosClient to get a timestamp.
  Usage: mvn exec:java -Dexec.mainClass="com.xiaomi.infra.chronos.client.ChronosClient" -Dexec.args="$zkQuorum $clusterName"
  
  @param argv first argument is ZooKeeper quorum string