Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use clock_gettime() instead of gettimeofday() on FreeBSD. #843

Closed
wants to merge 1 commit into from

Commits on Dec 21, 2012

  1. Use clock_gettime() instead of gettimeofday() on FreeBSD.

    On FreeBSD calling gettimeofday() causes all the cores on a multicore
    system to be synchronized. On a heavily loaded system with a
    significantly CPU bound application this can cause a 40% overall
    system degradation.
    
    A better option is to use clock_gettime() and pass in the
    CLOCK_REALTIME_FAST clock as the clock to use. This achieves the
    same behavior as gettimeofday() on Linux.
    ldm5180 committed Dec 21, 2012
    Copy the full SHA
    a07ca70 View commit details
    Browse the repository at this point in the history