• Home
Name Date Size #Lines LOC

..--

buildflags/03-May-2024-3024

README.mdD03-May-2024764 1512

clock.ccD03-May-2024241 124

clock.hD03-May-20241.1 KiB4112

default_clock.ccD03-May-2024488 2412

default_clock.hD03-May-2024714 2914

default_tick_clock.ccD03-May-2024564 2412

default_tick_clock.hD03-May-20241.1 KiB3313

pr_time_unittest.ccD03-May-20249.8 KiB289224

tick_clock.ccD03-May-2024254 124

tick_clock.hD03-May-20241.5 KiB4612

time.ccD03-May-202414.4 KiB417290

time.hD03-May-202449.3 KiB1,238611

time_android.ccD03-May-20242.4 KiB6617

time_conversion_posix.ccD03-May-20241.9 KiB6852

time_delta_from_string.ccD03-May-20245.4 KiB161100

time_delta_from_string.hD03-May-20241.3 KiB3911

time_delta_from_string_fuzzer.ccD03-May-2024493 1710

time_delta_from_string_unittest.ccD03-May-20244.7 KiB11075

time_exploded_icu.ccD03-May-20245.9 KiB162110

time_exploded_ios.ccD03-May-20244.7 KiB11469

time_exploded_posix.ccD03-May-20249.6 KiB292197

time_fuchsia.ccD03-May-20242.5 KiB9964

time_fuzzer.ccD03-May-20241.7 KiB5438

time_mac.mmD03-May-20248.8 KiB256211

time_mac_unittest.mmD03-May-20246.5 KiB185148

time_now_posix.ccD03-May-20244.2 KiB14195

time_override.ccD03-May-20241.6 KiB4836

time_override.hD03-May-20243.8 KiB9140

time_to_iso8601.ccD03-May-2024646 2213

time_to_iso8601.hD03-May-2024423 219

time_unittest.ccD03-May-202490.1 KiB2,4111,798

time_win.ccD03-May-202430.7 KiB819424

time_win_unittest.ccD03-May-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