Ejemplo n.º 1
0
 public object CallFunctionNoException(string functionName, object[] parameters)
 {
     try
     {
         TimeCollector.Start("CallFunctionNoException");
         return(ScriptEngine.CallFunctionNoException(functionName, parameters));
     }
     finally
     {
         TimeCollector.Pause("CallFunctionNoException");
     }
 }
Ejemplo n.º 2
0
        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);
            }
        }