Added time messurement for capturing and processing frames