javar/jdk8-analysis/src/launcher/java_md_solinux.c
/*
 * Provide a CounterGet() implementation based on gettimeofday() which
 * is universally available, even though it may not be 'high resolution'
 * compared to platforms that provide gethrtime() (like Solaris). It is
 * also subject to time-of-day changes, but alternatives may not be
 * known to be available at either build time or run time.
 */
Provide a CounterGet() implementation based on gettimeofday() which
is universally available, even though it may not be 'high resolution'
compared to platforms that provide gethrtime() (like Solaris). It is
also subject to time-of-day changes, but alternatives may not be
known to be available at either build time or run time.
Provide a CounterGet () implementation based on gettimeofday () which is universally available even though it may not be ' high resolution ' compared to platforms that provide gethrtime () ( like Solaris ) . It is also subject to time - of - day changes but alternatives may not be known to be available at either build time or run time .
uint64_t CounterGet() {
    uint64_t result = 0;
    struct timeval tv;
    if (gettimeofday(&tv, NULL) != -1) {
        result = 1000000LL * (uint64_t)tv.tv_sec;
        result += (uint64_t)tv.tv_usec;
    }
    return result;
}
uint64_t CounterGet ( ) { uint64_t result = 0 ; struct timeval tv ; if ( gettimeofday ( & tv , NULL ) != -1 ) { result = 1000000LL * ( uint64_t ) tv . tv_sec ; result += ( uint64_t ) tv . tv_usec ; } return result ; }
Provide a CounterGet() implementation based on gettimeofday() which
 is universally available, even though it may not be 'high resolution'
 compared to platforms that provide gethrtime() (like Solaris).
Provide a CounterGet () implementation based on gettimeofday () which is universally available even though it may not be ' high resolution ' compared to platforms that provide gethrtime () ( like Solaris ) .