Pranayam and yoga should be done for a certain duration of time. Know from Swami Ramdev when and for how long you should do these exercises.