Skip to content

Glossary: System Design Basics in C++

clock (injectable / fake clock)

Also written: fake clock, clock

A function returning the current time, passed into a class so tests can move time by hand instead of sleeping.

Where the book teaches it

Related terms

TTL (time to live)