an hourglass can be used to measure time