Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement weaked _gettimeofday #2151

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Oct 25, 2023

Fixes #2129.

Sketch used to validate:

#include

void setup() {
  Serial.begin(115200);
  auto timepoint = std::chrono::steady_clock::now();
  Serial.println(std::chrono::duration_cast<std::chrono::milliseconds>(timepoint.time_since_epoch()).count());
}

void loop() {

  auto timepoint = std::chrono::steady_clock::now();
  Serial.println(std::chrono::duration_cast<std::chrono::milliseconds>(timepoint.time_since_epoch()).count());
  delay(1111);
}

Fixes stm32duino#2129.

Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistm fpistm added this to the 2.7.0 milestone Oct 25, 2023
@fpistm fpistm added this to In progress in STM32 core based on ST HAL via automation Oct 25, 2023
@fpistm fpistm merged commit 81583c5 into stm32duino:main Oct 26, 2023
22 checks passed
STM32 core based on ST HAL automation moved this from In progress to Done Oct 26, 2023
@fpistm fpistm deleted the _gettimeofday branch October 26, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Linker error after using "std::chrono::steady_clock::now()"
1 participant