A Fast Algorithm for Consistency Checking Partially Ordered Time