Well to understand this better, let us determine what is most closely referred here about the clause “waiting for the wave”.
From reading the sentence we can see that since Jim was waiting for the wave he didn’t notice something was happening to him. So there is a connection between the clause and the verb. So this an adverb clause.
Answer:
adverb clause