• Home
Name Date Size #Lines LOC

..--

README.mdD06-Sep-2024764 1512

clock.ccD06-Sep-2024241 124

clock.hD06-Sep-20241.1 KiB4112

default_clock.ccD06-Sep-2024488 2412

default_clock.hD06-Sep-2024714 2914

default_tick_clock.ccD06-Sep-2024564 2412

default_tick_clock.hD06-Sep-20241.1 KiB3313

pr_time_unittest.ccD06-Sep-20249.8 KiB289224

tick_clock.ccD06-Sep-2024254 124

tick_clock.hD06-Sep-20241.5 KiB4612

time.ccD06-Sep-202410.9 KiB311198

time.hD06-Sep-202455 KiB1,393705

time_android.ccD06-Sep-20242.4 KiB6617

time_apple.mmD06-Sep-20246.8 KiB210171

time_apple_unittest.mmD06-Sep-20246.3 KiB179141

time_conversion_posix.ccD06-Sep-20241.9 KiB6852

time_delta_from_string.ccD06-Sep-20245.4 KiB161100

time_delta_from_string.hD06-Sep-20241.3 KiB3911

time_delta_from_string_fuzzer.ccD06-Sep-2024493 1710

time_delta_from_string_unittest.ccD06-Sep-20244.7 KiB11075

time_exploded_icu.ccD06-Sep-20245.9 KiB162110

time_exploded_ios.ccD06-Sep-20244.6 KiB11469

time_exploded_posix.ccD06-Sep-20249.6 KiB292197

time_fuchsia.ccD06-Sep-20242.5 KiB9964

time_fuzzer.ccD06-Sep-20241.7 KiB5438

time_now_posix.ccD06-Sep-20244.2 KiB14195

time_override.ccD06-Sep-20241.9 KiB5442

time_override.hD06-Sep-20244 KiB9644

time_unittest.ccD06-Sep-202496.7 KiB2,5551,888

time_win.ccD06-Sep-202431.1 KiB831431

time_win_unittest.ccD06-Sep-202415.1 KiB452282

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