Add stats gathering in gl_capture

Also remove a usleep that went unnoticed.