Function measure

  • A decorator function that measures the execution time of a method and logs it to the console.

    Type Parameters

    • T

    Parameters

    • _target: unknown

      The target object.

    • _propertyKey: string

      The name of the property.

    • descriptor: PropertyDescriptor

      The property descriptor.

    Returns PropertyDescriptor

    The updated property descriptor.