Example #1
0
    /**
     * testInvokeOfAStaticMethod.
     *
     * @return
     */
    public static long testInvokeOfAStaticMethod()
    {
        int      count = 0;
        DateTime start = DateTime.Now;

        for (int i = NB_STATIC_REFLECTION_TESTS; i != 0; i--)
        {
            count = count + ReflectionInvokeImpl.echoStatic("1").Length;
        }
        DateTime end           = DateTime.Now;
        TimeSpan executionTime = end - start;

        Console.WriteLine("[ReflectionTest], Invoke Of A Static Method " + NB_STATIC_REFLECTION_TESTS + " ReflectionInvokeImpl.echoStatic(\"\").length(), count=" + count + ", snapshot time,"
                          + executionTime.TotalMilliseconds);
        return((long)executionTime.TotalMilliseconds);
    }