tree: 713fd775c0db44ba3ac64f38b215ff4d14ee9dca [path history] [tgz]
  1. buildflags/
  2. clock.cc
  3. clock.h
  4. default_clock.cc
  5. default_clock.h
  6. default_tick_clock.cc
  7. default_tick_clock.h
  8. OWNERS
  9. pr_time_unittest.cc
  10. README.md
  11. tick_clock.cc
  12. tick_clock.h
  13. time.cc
  14. time.h
  15. time_android.cc
  16. time_conversion_posix.cc
  17. time_delta_from_string.cc
  18. time_delta_from_string.h
  19. time_delta_from_string_fuzzer.cc
  20. time_delta_from_string_unittest.cc
  21. time_exploded_icu.cc
  22. time_exploded_ios.cc
  23. time_exploded_posix.cc
  24. time_fuchsia.cc
  25. time_fuzzer.cc
  26. time_mac.mm
  27. time_mac_unittest.mm
  28. time_now_posix.cc
  29. time_now_starboard.cc
  30. time_override.cc
  31. time_override.h
  32. time_starboard.cc
  33. time_to_iso8601.cc
  34. time_to_iso8601.h
  35. time_unittest.cc
  36. time_win.cc
  37. 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.