code: @Override
      public void beforeExecute(Task task) {
          initializeBuildMetrics();
          long now = clock.getCurrentTime();
          Project project = task.getProject();
          ProjectMetrics projectMetrics = buildMetrics.getProjectProfile(project.getPath());
          projectMetrics.getTaskProfile(task.getPath()).setStart(now);
      }
docs: TaskExecutionListener