public long getTaskTime(Map<String, Long> map, String taskName) {
		Long time = map.get(taskName);
		if (time == null) {
			return -1;
		}
		return time.longValue();
	}
Get the time taken by a named task
The names of tasks that have run can be retrieved using getTimedTasks
@param map the times by task names
@param taskName the task name
@return the time taken by a named task
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AutoAnalysisManager.java