From 165535cd9fc36dfb989fc561e87a98c6bb49f9c7 Mon Sep 17 00:00:00 2001 From: Snow Date: Sun, 14 Aug 2016 11:34:44 +1000 Subject: [PATCH] Support retrieving real performance information. --- src/CCapture.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/CCapture.js b/src/CCapture.js index 7fb3934..b6f8ef7 100755 --- a/src/CCapture.js +++ b/src/CCapture.js @@ -921,12 +921,24 @@ function CCapture( settings ) { } + function _getTiming() { + + return { + framecount: _frameCount, + intermediateframecount: _intermediateFrameCount, + time: _time, + performancetime: _performanceTime + }; + + } + return { start: _start, capture: _capture, stop: _stop, save: _save, - on: _on + on: _on, + getTiming: _getTiming } }