Skip to content

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 the enhancement New feature or request label Oct 25, 2023
@fpistm fpistm added this to the 2.7.0 milestone Oct 25, 2023
@fpistm fpistm merged commit 81583c5 into stm32duino:main 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
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

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