If its asked the minimum time, I would say time is $O(1)$ as the sorted array in ascending order satisfies the min-heap property
$array[i] <= array[2i]$ and $array[i] <=array[2i+1]$
If its asked time taken by build heap, it would be $O(N)$, as still the loop runs from $floor(N/2)$ to $1$ irrespective of input:
BuildHeap(A) {
heapsize <- length(A)
for i <- floor( length/2 ) downto 1
Heapify(A, i)
}