Name Date Size #Lines LOC

..--

README.mdH A D25-Apr-2025764 1512

clock.ccH A D25-Apr-2025241 124

clock.hH A D25-Apr-20251.1 KiB4112

default_clock.ccH A D25-Apr-2025488 2412

default_clock.hH A D25-Apr-2025714 2914

default_tick_clock.ccH A D25-Apr-2025564 2412

default_tick_clock.hH A D25-Apr-20251.1 KiB3313

pr_time_unittest.ccH A D25-Apr-20259.8 KiB289224

tick_clock.ccH A D25-Apr-2025254 124

tick_clock.hH A D25-Apr-20251.5 KiB4612

time.ccH A D25-Apr-202510.8 KiB311198

time.hH A D25-Apr-202555 KiB1,395707

time_android.ccH A D25-Apr-20252.4 KiB6617

time_apple.mmH A D25-Apr-20256.8 KiB210171

time_apple_unittest.mmH A D25-Apr-20256.3 KiB179141

time_conversion_posix.ccH A D25-Apr-20251.9 KiB6852

time_delta_from_string.ccH A D25-Apr-20255.4 KiB162101

time_delta_from_string.hH A D25-Apr-20251.3 KiB4011

time_delta_from_string_fuzzer.ccH A D25-Apr-2025477 1810

time_delta_from_string_unittest.ccH A D25-Apr-20254.7 KiB11075

time_exploded_icu.ccH A D25-Apr-20255.9 KiB162110

time_exploded_posix.ccH A D25-Apr-20259.6 KiB292197

time_fuchsia.ccH A D25-Apr-20252.5 KiB9964

time_fuzzer.ccH A D25-Apr-20251.7 KiB5438

time_now_posix.ccH A D25-Apr-20254.1 KiB14195

time_override.ccH A D25-Apr-20251.9 KiB5442

time_override.hH A D25-Apr-20254 KiB9644

time_unittest.ccH A D25-Apr-202596.7 KiB2,5551,888

time_win.ccH A D25-Apr-202531.1 KiB831431

time_win_unittest.ccH A D25-Apr-202515.1 KiB453282

README.md

1# //base: Time-Related Functionality
2
3This directory contains the portions of //base that deal with time-related
4concepts. Most critical are the classes in [time.h](time.h). `Time` and
5`TimeTicks` both encode absolute times, but `TimeTicks` is monotonic and should
6be used for most internal purposes, while `Time` can move backwards and is
7primarily for human-readable times. `TimeDelta` is a duration computed from
8either of the above concepts.
9
10There are also various files dealing with clocks, which are primarily useful
11when tests need to modify how the program tracks the passage of time. See
12[/base/test/task_environment.h](/base/test/task_environment.h)'s `MOCK_TIME`
13ability for
14[testing components which post tasks](/docs/threading_and_tasks_testing.md).
15