aboutsummaryrefslogtreecommitdiff
path: root/absl/time
AgeCommit message (Collapse)Author
2023-12-26Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 593889663 Change-Id: I589cd18922172d8aca99ddcc0d6f08a013bed9b4
2023-12-26Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 593814844 Change-Id: If1967814b2b9273061b928bfee102faae1fad263
2023-12-26Include `cstdint` where necessary.Dmitri Gribenko
PiperOrigin-RevId: 593780380 Change-Id: Id80217c63dd76bafbcfb79a7ee10807f1b771cb2
2023-11-14Support AbslStringify in absl Civil Time types.Abseil Team
PiperOrigin-RevId: 582342910 Change-Id: Iada5420867779ed352d8fb0695ff6d6044acfba2
2023-11-08Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 580538328 Change-Id: I2699c77eeb68708584231d86ae2c0fca4870c17e
2023-10-11Import of CCTZ from GitHub.Derek Mauro
PiperOrigin-RevId: 572591515 Change-Id: I7d2bd1f737efeeecb8a063ae94a696315bb14532
2023-10-11Bazel: Enable the header_modules featureDerek Mauro
PiperOrigin-RevId: 572575394 Change-Id: Ic1c5ac2423b1634e50c43bad6daa14e82a8f3e2c
2023-10-10Bazel: Support layering_check and parse_headersDerek Mauro
The layering_check feature ensures that rules that include a header explicitly depend on a rule that exports that header. Compiler support is required, and currently only Clang 16+ supports diagnoses layering_check failures. The parse_headers feature ensures headers are self-contained by compiling them with -fsyntax-only on supported compilers. PiperOrigin-RevId: 572350144 Change-Id: I37297f761566d686d9dd58d318979d688b7e36d1
2023-09-23Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 567869792 Change-Id: I29948282b57b401f3199dc41160538aa9a8079a7
2023-09-06Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 563201556 Change-Id: I2e1abde3944f3f3db532ce15db12adaf89207515
2023-08-29Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 561095618 Change-Id: I1834e0155b05b9984145504d5925dc6fa8a3933b
2023-08-11Include what you spellDmitri Gribenko
PiperOrigin-RevId: 555894810 Change-Id: I349c94e7c6e7ba1dbd817aa8e4340c1dada84654
2023-08-10Fixed shared Windows build in Chrome when building MediaPipe.Abseil Team
The MediaPipe library calls absl::SleepFor() but that causes linker errors in Chrome's (non-production) shared library build because AbslInternalSleepFor isn't exported. PiperOrigin-RevId: 555699667 Change-Id: I95033857ec13ed72ff2a80001878b5e35bbeee91
2023-08-08Fix warnings:Dmitri Gribenko
* 'DoNotOptimize<T>' is deprecated: The const-ref version of this method can permit undesired compiler optimizations in benchmarks * missing #include <string> for 'std::string' PiperOrigin-RevId: 554936149 Change-Id: Iaf06cd9b9b0762e3a514b7e1cfe4a4fd6df24083
2023-08-08Add missing include for <iomanip>Derek Mauro
PiperOrigin-RevId: 554817008 Change-Id: If18f5992e2a65ce2e3e3cf7e0732767676c4320c
2023-08-04Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 553878129 Change-Id: I054a5bd4c9011155c9fe03df0f07803ad7d2ade3
2023-08-01Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 552848883 Change-Id: Ibcf4b59e2ab671d8dd8fddcbc9d74d4c8cd3f0ff
2023-07-31PR #1495: CMake: Link CoreFoundation with -frameworkDaniel Schürmann
Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1495 This fixes https://github.com/abseil/abseil-cpp/issues/1494 With CMake 3.24 we can also use `$<LINK_LIBRARY:FRAMEWORK,CoreFoundation>` but abseil is still at CMake 3.10 The change has been tested here: https://github.com/daschuer/vcpkg/actions/runs/5670741925 Merge f3ff6bc01ff45970d2b803ca51421483b423b72b into c9c0fd5185067208e1cc4227d16122571762af39 Merging this change closes #1495 COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1495 from daschuer:framework-link-fix f3ff6bc01ff45970d2b803ca51421483b423b72b PiperOrigin-RevId: 552564485 Change-Id: I57b580e5795c54865576110e56220128d8b603b8
2023-07-25Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 550964088 Change-Id: I54e4bff1cf72442c34e1668dbe8af9337eb0aa46
2023-06-29Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 544445872 Change-Id: Ic7d42dca3461babdf8a6dff4c73a1596e795ffb2
2023-06-28Roll forward of CCTZ update; fixed by clang release.Abseil Team
PiperOrigin-RevId: 544146637 Change-Id: I5ca44465f451956ae246081ce826891599b18b9c
2023-06-28Rollback of CCTZ update due to crash in clang ObjcLink.Abseil Team
PiperOrigin-RevId: 544060862 Change-Id: I6ca631385826f6e10f6c3eeec1af532402d0b532
2023-06-27Import of CCTZ from GitHub.Gennadiy Rozental
PiperOrigin-RevId: 543896343 Change-Id: Ia91b3e082b764b750bbbe9a3ce63192263d51438
2023-06-09Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 539104398 Change-Id: I6385662e0c5694d40c57887f983b16adc9eced14
2023-06-06Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 538241594 Change-Id: Ie6f0d913bcf07dea2f33e47198ba952b3800d70e
2023-06-05Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 537825067 Change-Id: I3ce8712d5130068fb7d77b563eb502e2e9560810
2023-06-01Merge pull request #1457 from juergbi:time-threadsCopybara-Service
PiperOrigin-RevId: 537088042 Change-Id: I6ef219a1a76baf3a751a6084a8fb8639c9bdac51
2023-05-26Disable the use of the fast GetCurrentTimeNanos() algorithm based onDerek Mauro
the cyclecounter by default, since it may be unsafe in some situations (for example, if the system may enter a sleep state). Fixes #1460 PiperOrigin-RevId: 535641718 Change-Id: I41c9cc4bc7a8ae7280ff9df00abd57668205045b
2023-05-24CMake: Link `time_zone` library to `Threads::Threads`Jürg Billeter
`time_zone_impl.cc` uses `std::mutex`.
2023-05-22Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 534150392 Change-Id: I4c0c111202178031e08d9edad3a4501800d924f0
2023-05-19Import of CCTZ from GitHub.Derek Mauro
PiperOrigin-RevId: 533455360 Change-Id: Ia95b225f8c186a831801f1ee008d7a5c0fff544b
2023-05-17Add compiler deprecation warnings for absl::ConvertDateTime() and ↵Derek Mauro
absl::FromDateTime(). These have been marked deprecated in the comments for some time, (since f340f773edab951656b19b6f1a77c964a78ec4c2) but the warnings were never enabled. A warning suppression is enabled for Abseil code so that when we declare types in our code, we don't get a warning. PiperOrigin-RevId: 532891102 Change-Id: Ife0c5696a061ea44769e02869e4e3d1196e86f9d
2023-05-02Fix spelling mistakesVertexwahn
2023-04-24Fix some spelling mistakesVertexwahn
2023-04-19Prefer copy_n and fill_n over copy and fill where appropriate.Rose
This lets us avoid having to do the addition manually.
2023-04-14Reland "Get rid of tail padding within `absl::Duration`. This reduces memory ↵Abseil Team
usage needs when storing duration in containers (e.g. `vector<absl::Duration>` uses 25% less memory), and allows classes with `absl::Duration` fields to fit other stuff in memory previously used by tail padding (e.g. `std::optional<absl::Duration>` is now 16 bytes instead of 24)." PiperOrigin-RevId: 524256689 Change-Id: Ibf40d9e5411020179fa34c972349c7b58aa9d908
2023-04-04Add commentary for universal time scaleAbseil Team
PiperOrigin-RevId: 521932692 Change-Id: If637de6501a4ac41f0078d581049d23aad3480a4
2023-04-03Remove ABSL_SKIP_TIME_TESTS_BROKEN_ON_MSVC_OPT. These testsDerek Mauro
were broken on MSVC 2017, but MSVC 2017 is no longer supported PiperOrigin-RevId: 521527454 Change-Id: I7203708bdc9aa03c9764c9c36db7ce5777e43c3c
2023-03-28Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 520197681 Change-Id: I96d0253b61bb683bf30060a9b4c19e2c9dce629b
2023-03-27Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 519786979 Change-Id: Ic5b69c1ac37b47db01d613edca5504e6611657b5
2023-03-23Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 518850294 Change-Id: I3e9dcce5de2ae878d0992f05c0f39ccaf10a1ac5
2023-03-15Enhance documentation about absl::Duration integer division, whichAbseil Team
truncates, and floating-point multiplication/division, which rounds. PiperOrigin-RevId: 517016481 Change-Id: I3b0c357ea7236f2c0231df5e6b47c742c3f40047
2023-03-13Support AbslStringify in absl::Time and absl::Duration.Abseil Team
PiperOrigin-RevId: 516363556 Change-Id: Iae5e781d46dc8a8c4242ab460b57b65271b93159
2023-02-22Resolve TODO: remove C++11 workaroundsRose
We no longer support C++11 as per the Google C++ support documentation: we support C++14 and up, so we can remove these workarounds.
2023-02-02Get rid of tail padding within `absl::Duration`. This reduces memory usage ↵Abseil Team
needs when storing duration in containers (e.g. `vector<absl::Duration>` uses 25% less memory), and allows classes with `absl::Duration` fields to fit other stuff in memory previously used by tail padding (e.g. `std::optional<absl::Duration>` is now 16 bytes instead of 24). PiperOrigin-RevId: 506568782 Change-Id: Ic9e077f02a80da013fb2d312aff77761b970c07a
2023-02-02Get rid of tail padding within `absl::Duration`. This reduces memory usage ↵Abseil Team
needs when storing duration in containers (e.g. `vector<absl::Duration>` uses 25% less memory), and allows classes with `absl::Duration` fields to fit other stuff in memory previously used by tail padding (e.g. `std::optional<absl::Duration>` is now 16 bytes instead of 24). PiperOrigin-RevId: 506543503 Change-Id: Ifeb2397c953a5d3da317a70ab49a3ebb85042344
2023-01-12Replace the tag "no_test_msvc_x64" with "no_test_lexan" in absl.Abseil Team
PiperOrigin-RevId: 501644407 Change-Id: Ie98d22e4983cfbd9cad2176925774d624d4702cf
2023-01-11Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 501343076 Change-Id: I12e04a87b9a90951f9b52bd9690cce28d03b0f29
2022-12-20Tagged most functions in absl/time/time.h as ABSL_ATTRIBUTE_CONST_FUNCTION ↵Abseil Team
or ABSL_ATTRIBUTE_PURE_FUNCTION However, both absl_attributes are now unimplemented to avoid breaking existing users. PiperOrigin-RevId: 496769399 Change-Id: I9c00cb60b885526300d744f9ea7c0f2178f092bb
2022-11-29Import of CCTZ from GitHub.Abseil Team
PiperOrigin-RevId: 491723314 Change-Id: I68bc5a7ea5288982f6d0efb64c14fdbee4eec85a