Blocking the Profiler from showing in my component

Hi everyone,

I am developing a component as part of a plugin and even though it doesnt really do any heavy processing and is quite fast (just 6 ms) the profiler still shows the running time which is not ideal. Is there a way i can stop the profiler from showing on it?

Thanks,
Pablo

issue solved! i managed to get this done with this code

public override TimeSpan ProcessorTime 
{
    get
    {
        return TimeSpan.Zero;
    }
}

thanks anyway!

1 Like