public final String decompile(Function function, int timeoutSecs) throws Exception {
		initialize();
		DecompileResults decompRes =
			decompiler.decompileFunction(function, timeoutSecs, flatProgramAPI.getMonitor());

		DecompiledFunction res = decompRes.getDecompiledFunction();
		if (res == null)
			throw new DecompileException("Decompiler", decompRes.getErrorMessage());
		return res.getC();
	}
Decompiles the specified function and returns a
string containing the decompilation.
@param function the function to decompile
@param timeoutSecs maximum time allowed for decompile to complete.
@return a string containing the decompilation
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/flatapi/FlatDecompilerAPI.java