public object CallFunctionNoException(string functionName, object[] parameters) { try { TimeCollector.Start("CallFunctionNoException"); return(ScriptEngine.CallFunctionNoException(functionName, parameters)); } finally { TimeCollector.Pause("CallFunctionNoException"); } }
public object CallFunction(string functionName, object[] parameters) { try { TimeStamp.Start("CallFunction: " + functionName); TimeCollector.Start("CallFunction"); return(scriptEngine.CallFunction(functionName, parameters)); } finally { TimeCollector.Pause("CallFunction"); TimeStamp.Log("CallFunction: " + functionName); } }