def now(self):
        """ Capture time. """
        if self._now is None:
            # Compute the current time only once per instance
            self._now = datetime.utcnow()
        return self._now
Capture time.