Log a date difference every 5 minutes

Recipe ToolsMarketing

What it does

When the clock triggers every 5 minutes, this automation calculates the difference between two dates. The result is logged to the job report so someone can monitor elapsed time at regular intervals.

Who it's for

Operations teams who need to track elapsed time between events in automated workflows.

How teams use this

Monitor workflow execution time

Track how long each 5-minute cycle takes by logging the date difference to the job report. Operations teams see performance trends without adding manual steps.

Alert when intervals exceed a threshold

Extend this automation to check if the date difference exceeds a set duration and send a notification when it does. Only add a condition to compare the difference against your SLA.

Export time data to a spreadsheet

Retarget the job report logs to a data warehouse or analytics tool so someone can analyze timing patterns over days or weeks. The calculation stays the same.

How it works

  1. Start the schedule every 5 minutes. This automation runs on a recurring schedule, executing every 5 minutes so date calculations happen at consistent intervals without manual intervention.
  2. Set up date variables for comparison. Create two date variables, date1 and date2, in the Clock app to hold the timestamps required for calculating the elapsed time between them.
  3. Log the calculated difference. Write the date difference result to the job report so the elapsed time is recorded and visible for monitoring and analysis.