On 09/11/2021 07:57, Sebastian Huber wrote:
We could also use something like this:static inline struct timespec rtems_clock_get_realtime(void) { struct timespec time_snapshot; _Timecounter_Nanotime( &time_snapshot ); return time_snapshot; } Unfortunately GCC is not able to optimize this.
Just for reference: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103150 -- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: [email protected] phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/ _______________________________________________ devel mailing list [email protected] http://lists.rtems.org/mailman/listinfo/devel
