scitools.com

← Metric catalog

Halstead Effort (E) is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Halstead Effort (E)

API ID: HalsteadEffort
Languages: Any
Targets: Files, Functions

Halstead Effort (E) measures coding time

Where Time is E/18 seconds. It's calculated from the Halstead Difficult (D) and Halstead Volume (V) as: