You have two strings whose only known property is that when you light one end of either string it takes exactly one hour to burn. The rate at which the strings will burn is completely random and each string is different.
How do you measure 45 minutes?
Light both the ends of the first string and one end of the second string. 30 minutes will have passed when the first string is fully burned, which means 30 minutes have burned off the second string. Light the end of the second string and when it is fully burned, 45 minutes will have passed.