recursively get build time