| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| buildflags/ | 03-May-2024 | - | 30 | 24 | ||
| README.md | D | 03-May-2024 | 764 | 15 | 12 | |
| clock.cc | D | 03-May-2024 | 241 | 12 | 4 | |
| clock.h | D | 03-May-2024 | 1.1 KiB | 41 | 12 | |
| default_clock.cc | D | 03-May-2024 | 488 | 24 | 12 | |
| default_clock.h | D | 03-May-2024 | 714 | 29 | 14 | |
| default_tick_clock.cc | D | 03-May-2024 | 564 | 24 | 12 | |
| default_tick_clock.h | D | 03-May-2024 | 1.1 KiB | 33 | 13 | |
| pr_time_unittest.cc | D | 03-May-2024 | 9.8 KiB | 289 | 224 | |
| tick_clock.cc | D | 03-May-2024 | 254 | 12 | 4 | |
| tick_clock.h | D | 03-May-2024 | 1.5 KiB | 46 | 12 | |
| time.cc | D | 03-May-2024 | 14.4 KiB | 417 | 290 | |
| time.h | D | 03-May-2024 | 49.3 KiB | 1,238 | 611 | |
| time_android.cc | D | 03-May-2024 | 2.4 KiB | 66 | 17 | |
| time_conversion_posix.cc | D | 03-May-2024 | 1.9 KiB | 68 | 52 | |
| time_delta_from_string.cc | D | 03-May-2024 | 5.4 KiB | 161 | 100 | |
| time_delta_from_string.h | D | 03-May-2024 | 1.3 KiB | 39 | 11 | |
| time_delta_from_string_fuzzer.cc | D | 03-May-2024 | 493 | 17 | 10 | |
| time_delta_from_string_unittest.cc | D | 03-May-2024 | 4.7 KiB | 110 | 75 | |
| time_exploded_icu.cc | D | 03-May-2024 | 5.9 KiB | 162 | 110 | |
| time_exploded_ios.cc | D | 03-May-2024 | 4.7 KiB | 114 | 69 | |
| time_exploded_posix.cc | D | 03-May-2024 | 9.6 KiB | 292 | 197 | |
| time_fuchsia.cc | D | 03-May-2024 | 2.5 KiB | 99 | 64 | |
| time_fuzzer.cc | D | 03-May-2024 | 1.7 KiB | 54 | 38 | |
| time_mac.mm | D | 03-May-2024 | 8.8 KiB | 256 | 211 | |
| time_mac_unittest.mm | D | 03-May-2024 | 6.5 KiB | 185 | 148 | |
| time_now_posix.cc | D | 03-May-2024 | 4.2 KiB | 141 | 95 | |
| time_override.cc | D | 03-May-2024 | 1.6 KiB | 48 | 36 | |
| time_override.h | D | 03-May-2024 | 3.8 KiB | 91 | 40 | |
| time_to_iso8601.cc | D | 03-May-2024 | 646 | 22 | 13 | |
| time_to_iso8601.h | D | 03-May-2024 | 423 | 21 | 9 | |
| time_unittest.cc | D | 03-May-2024 | 90.1 KiB | 2,411 | 1,798 | |
| time_win.cc | D | 03-May-2024 | 30.7 KiB | 819 | 424 | |
| time_win_unittest.cc | D | 03-May-2024 | 15.1 KiB | 452 | 282 |
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