Package net.sf.saxon.trace

## Class TimingCodeInjector

- java.lang.Object
- - net.sf.saxon.trace.TraceCodeInjector
  - - net.sf.saxon.trace.TimingCodeInjector

- All Implemented Interfaces:
    `CodeInjector`

      public class TimingCodeInjector
      extends TraceCodeInjector

  A code injector that wraps the body of a template or function in a TraceExpression, which causes the TimingTraceListener to be notified at the start and end of the function/template evaluation

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TimingCodeInjector()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `process​(TraceableComponent component)` | Process a component such as a function, template, or global variable.

    - ### Methods inherited from class net.sf.saxon.trace.TraceCodeInjector

      `inject, injectClause, isApplicable`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TimingCodeInjector

          public TimingCodeInjector()

  - ### Method Detail

    - #### process

          public void process​(TraceableComponent component)

      Description copied from interface: `CodeInjector`
      Process a component such as a function, template, or global variable. The default implementation does nothing.
      Specified by:
        `process` in interface `CodeInjector`
      Overrides:
        `process` in class `TraceCodeInjector`
      Parameters:
        `component` - the component to be processed