Converting jiffies to milli seconds

前端 未结 4 1820
生来不讨喜
生来不讨喜 2020-12-04 11:42

How do I manually convert jiffies to milliseconds and vice versa in Linux? I know kernel 2.6 has a function for this, but I\'m working on 2.4 (homework) and though I looked

4条回答
  •  感动是毒
    2020-12-04 11:52

    To obtain the USER_HZ value (see the comments under the accepted answer) using CLI:

    getconf CLK_TCK
    

提交回复
热议问题