Implement a `clock`.

Closes #132.