if some program run for finite no of statements then its complexity is of order 1. complexity is calculated for cases where input size defines the no. of statements executed.
if no of input are n
then, complexity is of order n if it runs for n times.
if no of input are n
then, complexity is of order n^2 if it runs for n*n times, and so on.
if no. of times function executed doesn't depends on input size (or it don't take any input) then its of order 1, no matter how long that function is.