FAQ

Search Discussions

  • Dave at Aug 31, 2012 at 10:18 am
    *** Submitted as
    http://code.google.com/p/go/source/detail?r=18a0bd67b4b4 ***

    cgo/misc/test: burn CPU to improve sleep accuracy

    Fixes issue 4008.

    Run a background goroutine that wastes CPU to trick the
    power management into raising the CPU frequency which,
    by side effect, makes sleep more accurate on arm.

    === RUN TestParallelSleep
    --- PASS: TestParallelSleep (1.30 seconds)
    _cgo_gotypes.go:772: sleep(1) slept for 1.000458s

    R=minux.ma, r
    CC=golang-dev
    http://codereview.appspot.com/6498060


    http://codereview.appspot.com/6498060/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedAug 31, '12 at 7:39a
activeAug 31, '12 at 10:18a
posts2
users2
websitegolang.org

2 users in discussion

Dave: 1 post Minux Ma: 1 post

People

Translate

site design / logo © 2022 Grokbase