You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hola paco,
es un buen paso cambiar el struct timeval por std::chrono:seconds last_ts ? Y cambiando eso ya tienes el tiempo en segundos ? o sea ya no haria falta un gettimeofday ?
En C++ se puede usar la librería chrono para medir tiempos. Tienes tipos (clases) para instantes de tiempo, y para duraciones. Este código te puede ayudar:
En lugar de usar gettimeofday() y struct timeval, usa las modernas funcionalidades de C++ que puedes ver aquí
The text was updated successfully, but these errors were encountered: