public static GhidraTimer getGhidraTimer(int initialDelay, int delay, TimerCallback callback) {
		if (SystemUtilities.isInHeadlessMode()) {
			return new GhidraSwinglessTimer(initialDelay, delay, callback);

		}
		return new GhidraSwingTimer(initialDelay, delay, callback);
	}
Creates a new {@link GhidraTimer} appropriate for a headed or headless environment.
<P>
If running a headed environment, the callback will happen on the Swing thread.  Otherwise, the
callback will happen on the non-Swing {@link Timer} thread.
<P>
See also {@link GTimer}
Ghidra/Framework/Generic/src/main/java/generic/timer/GhidraTimerFactory.java