# Functions
Clock retrieves the current clock set in the context, defaulting to clock.RealClock.
WithClock sets the given clock in the context.
WithDeadline behaves exactly like context.WithDeadline but uses the clock from the context, if any, to determine which clock to use for the deadline.
WithDeadlineOfClock sets the given context deadline to be no later than the given time under the auspices of a particular clock.
WithTimeout behaves exactly like context.WithTimeout but uses the clock from the context, if any, to determine which clock to use for the timeout.
WithTimeoutOfClock is equivalent to WithDeadlineOfClock(ctx, c, c.Now().Add(timeout)).