private String time() {
		if (!SystemUtilities.isInDevelopmentMode()) {
			// The dev console log appender does not show date info for log messages.  This method
			// allows us to show the time in the dev console, which is useful for debugging.  The
			// application log files always contain a date for each message.
			return "";
		}

		LocalDateTime localDate = DateUtils.toLocalDate(new Date());
		return TIME_FORMATTER.format(localDate) + " ";
	}
Cancel the currently running task and clear all commands that are scheduled to run. Block
until the currently running task ends.

@param monitor a monitor to cancel waiting for the task to finish
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/mgr/ToolTaskManager.java