Add Canvas::get_last_render_start_timestamp method

This commit is contained in:
Tim Mayberry 2017-03-28 14:05:03 +10:00
parent 8538ba35fe
commit ab13e87ec2
2 changed files with 7 additions and 0 deletions

View file

@ -58,6 +58,7 @@ uint32_t Canvas::tooltip_timeout_msecs = 750;
Canvas::Canvas ()
: _root (this)
, _bg_color (rgba_to_color (0, 1.0, 0.0, 1.0))
, _last_render_start_timestamp(0)
{
set_epoch ();
}
@ -103,6 +104,8 @@ Canvas::render (Rect const & area, Cairo::RefPtr<Cairo::Context> const & context
{
PreRender (); // emit signal
_last_render_start_timestamp = g_get_monotonic_time();
#ifdef CANVAS_DEBUG
if (DEBUG_ENABLED(PBD::DEBUG::CanvasRender)) {
cerr << this << " RENDER: " << area << endl;