From 6e01aa5c689a7be5220159b755d1b193517126c7 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 16 Jul 2016 16:11:01 -0400 Subject: [PATCH] dom: Added 'dom.tracked.N.duration' support --- src/dom.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dom.cpp b/src/dom.cpp index 794abf13..00506851 100644 --- a/src/dom.cpp +++ b/src/dom.cpp @@ -144,6 +144,13 @@ bool domGet ( return true; } + // dom.active.duration + if (pig.skipLiteral ("duration")) + { + value = Duration (tracked[count - n].range.total ()).formatISO (); + return true; + } + int n; if (pig.skipLiteral ("tag.") && pig.getDigits (n))