From 72a37db559cd9b9675a4fde0c219f56828dfcf21 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 16 Jul 2016 12:21:46 -0400 Subject: [PATCH] dom: Added 'dom.active.duration' support --- src/dom.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/dom.cpp b/src/dom.cpp index dfd01d5c..1431e549 100644 --- a/src/dom.cpp +++ b/src/dom.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -59,6 +60,14 @@ bool domGet ( return true; } + // dom.active.duration + if (pig.skipLiteral (".duration") && + latest.range.is_open ()) + { + value = Duration (latest.range.total ()).formatISO (); + return true; + } + // dom.active.tag.count if (pig.skipLiteral (".tag.count")) {