Go to the Spark UI.
Open the Stages tab.
For each stage:
Look at the column “Executor CPU Time” (or sometimes called “Task Time”).
This shows total executor CPU time in milliseconds for all tasks in that stage.
Sum these values for all stages to get total compute time of the job.