Changeset 1902


Ignore:
Timestamp:
Apr 24, 2005, 11:55:59 AM (20 years ago)
Author:
bird
Message:

Added gethrtime().

Location:
trunk/src/emx
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.17 to 1.18
    r1901 r1902  
    792792/** @} */
    793793
     794
     795/** @defgroup grp_Back_time  LIBC Backend - Time Management
     796 * @{ */
     797
     798/**
     799 * Gets the current high-resolution timestamp as nanoseconds.
     800 *
     801 * @returns nanosecond timestamp.
     802 */
     803hrtime_t __libc_Back_timeHighResNano(void);
     804
     805/** @} */
     806
    794807__END_DECLS
    795808
  • trunk/src/emx/include/sys/time.h

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r1901 r1902  
    4040 * @changed EMX isms
    4141 * @changed IBM TCP paranoia.
     42 * @changed Added hrtime_t and gethrtime from SUN/HP/RTLinux.
    4243 * @todo    Implement futimes() and lutimes().
    4344 */
     
    333334int     utimes(const char *, const struct timeval *);
    334335
     336/* bird - start: A nice SUN/HP/RTLinux extension. */
     337typedef signed long long hrtime_t;
     338hrtime_t gethrtime(void);
     339#define HRTIME_INFINITY     (0x7fffffffffffffffLL)
     340/* bird - end. */
     341
    335342__END_DECLS
    336343
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.98 to 1.99
    r1901 r1902  
    14861486    "__std_wmemmove" @1494
    14871487    "__std_wmemset" @1495
     1488    "___libc_Back_timeHighResNano" @1496
     1489    "__std_gethrtime" @1497
Note: See TracChangeset for help on using the changeset viewer.