tree: 3f79ff627cfa23fd0c5e490ac924c0af55d3b8d1 [path history] [tgz]
  1. clock.cc
  2. clock.h
  3. default_clock.cc
  4. default_clock.h
  5. default_tick_clock.cc
  6. default_tick_clock.h
  7. OWNERS
  8. pr_time_unittest.cc
  9. README.md
  10. tick_clock.cc
  11. tick_clock.h
  12. time.cc
  13. time.h
  14. time_android.cc
  15. time_apple.mm
  16. time_apple_unittest.mm
  17. time_conversion_posix.cc
  18. time_delta_from_string.cc
  19. time_delta_from_string.h
  20. time_delta_from_string_fuzzer.cc
  21. time_delta_from_string_unittest.cc
  22. time_exploded_icu.cc
  23. time_exploded_posix.cc
  24. time_fuchsia.cc
  25. time_fuzzer.cc
  26. time_now_posix.cc
  27. time_override.cc
  28. time_override.h
  29. time_unittest.cc
  30. time_win.cc
  31. time_win_unittest.cc
base/time/README.md

//base: Time-Related Functionality

This directory contains the portions of //base that deal with time-related concepts. Most critical are the classes in time.h. Time and TimeTicks both encode absolute times, but TimeTicks is monotonic and should be used for most internal purposes, while Time can move backwards and is primarily for human-readable times. TimeDelta is a duration computed from either of the above concepts.

There are also various files dealing with clocks, which are primarily useful when tests need to modify how the program tracks the passage of time. See /base/test/task_environment.h's MOCK_TIME ability for testing components which post tasks.