Python: How to get number of mili seconds per jiffy

前端 未结 3 1344
自闭症患者
自闭症患者 2020-12-06 10:20

I\'d like to know the HZ of the system, i.e. how many mili seconds is one jiffy from Python code.

3条回答
  •  盖世英雄少女心
    2020-12-06 10:46

    I wrote this:

    https://github.com/peppelinux/xt_recent_parser

    output is like this:

    python3 xt_recent_parser.py 
    XT_RECENT python parser
    
    
    
    114.241.108.160, last seen: 2017-03-25 18:21:42 after 13 Connections 
    46.165.210.17, last seen: 2017-03-25 13:07:54 after 10 Connections 
    61.53.219.162, last seen: 2017-03-25 17:39:17 after 20 Connections 
    179.37.141.232, last seen: 2017-03-25 18:08:23 after 2 Connections 
    114.42.117.39, last seen: 2017-03-25 13:22:14 after 18 Connections 
    177.12.84.234, last seen: 2017-03-25 16:22:14 after 17 Connections 
    

    I think that it will be easy to edit if you need millisecond conversion, you only have to extend JiffyTimeConverter python class

提交回复
热议问题