pcl::ScopeTime needs to be declared as a variable to work