Web Analytics

How is the infinitive phrase used in the sentence?

To wake up on time, set your alarm before going to bed.

Aadjective
Badverb
Cnoun as subject
Dnoun as direct object