linux - How do you get monotonic clock in shell? -


i see no such option date

/proc/uptime bootbased, not monotonic.

and @ last found cat /proc/timer_list | grep now yields number of nsecs obtained via ktime_get returning monotonic time if understand correctly, that's quite cumbersome.

update: returned value must same returned clock_gettime

looks it's available in python 3.3: http://www.python.org/dev/peps/pep-0418/

failing that, write small c program calls clock_gettime: http://linux.die.net/man/3/clock_gettime


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -