From 8d74cb6e52c0244bab8ba3bbd88fdb6bc40abfad Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 19 Jun 2025 10:33:51 -0400 Subject: [PATCH] debug log job duration --- playlet-lib/src/components/JobSystem/JobTask.bs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/playlet-lib/src/components/JobSystem/JobTask.bs b/playlet-lib/src/components/JobSystem/JobTask.bs index 18e8eb20..edde1c3b 100644 --- a/playlet-lib/src/components/JobSystem/JobTask.bs +++ b/playlet-lib/src/components/JobSystem/JobTask.bs @@ -44,7 +44,16 @@ function ExecuteJobRequest(request as object) as void job.input = request.input end if - LogDebug("Executing job:", request.jobName) + #if DEBUG + LogDebug("Executing job:", request.jobName) + time = CreateObject("roTimespan") + #end if + job@.Execute() + + #if DEBUG + LogDebug("Job executed:", request.jobName, "in", time.TotalMilliseconds(), "ms") + #end if + job.input = invalid end function