Alternative von struct timb gesucht

Gast #6557904
Lesenswert?

Hallo,

ich suche für eine Linux C Anwendung eine Alternative zu der Struktur 
timeb von der Headerdatei timeb.h. Für sind die beiden Werte von der 
Struktur wichtig:
1
time_t         time     The seconds portion of the current time. 
2
unsigned short millitm  The milliseconds portion of the current time.

https://pubs.opengroup.org/onlinepubs/000095399/basedefs/sys/timeb.h.html
#6557938
Lesenswert?

Gate schrieb:
> https://pubs.opengroup.org/onlinepubs/000095399/basedefs/sys/timeb.h.html

Das bezieht sich auf eine veraltete Version des Standards. Da ist das 
noch als "LEGACY" markiert. In der 2008er Version wurde die Funktion 
ftime() ganz entfernt.

Die Linux-Manpage sagt:
     NOTE:  This  function is deprecated, and will be removed in a
     future version of the GNU C library.  Use clock_gettime(2) instead.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren