A logical clock is a mechanism for capturing chronological and causal relationships in a distributed system.