The two ropes

You have two ropes. Each rope takes one hour to burn. These ropes are not identical, nor are they uniform; i.e. it does not necessarily take half an hour for half the rope to burn (if you have trouble visualizing this, imagine a rope of varying thickness across its length). With only these two ropes and a way to light them, how do you measure out 45 minutes?