Log time differences from DateTime values every 5 minutes
Recipe ToolsMarketing
What it does
When a scheduled trigger fires every 5 minutes, this automation calculates the time difference between two DateTime values. It logs the difference in seconds, minutes, and hours to the job report.
Who it's for
Operations teams who need to monitor time intervals between events without manual calculation.
How teams use this
Monitor process execution time
Track how long a business process takes by logging the time difference every 5 minutes. The job report shows elapsed time in multiple formats so someone can identify where delays occur.
Measure SLA compliance intervals
Use the time difference logs to verify that tasks complete within SLA windows. The seconds, minutes, and hours breakdown helps teams see if they are meeting response time targets.
Add a custom time unit to the report
Include a fourth log step that calculates and records the time difference in days so longer-running processes are easier to track. Only the logging step needs to be added to this automation.
How it works
- Run on a 5-minute schedule. Clock triggers this automation every 5 minutes so time differences are calculated and logged at regular intervals.
- Set start and end DateTime values. Create variables for StartDateTime and EndDateTime in Clock so the time difference can be calculated between these two points.
- Log time difference in seconds. Calculate and log the difference in seconds to the job report so the raw elapsed time is recorded for analysis.
- Log time difference in minutes. Calculate and log the difference in minutes to the job report for easier readability of medium-length time intervals.
- Log time difference in hours. Calculate and log the difference in hours to the job report to show longer elapsed time spans at a glance.