How does this ancient instrument calculate time?