measure how long it takes to extract pictures