Re: Difference between timestamp in dmesg and jiffies inside code
Your question is pretty advanced, and certainly not an "Absolute Beginners Section" type question.
The dmseg stuff is time stamped in seconds, while jiffies counts basic time ticks in the kernel.
The jiffies rate varies but have a look at your config file to know for sure for your system. 250 Hertz is fairly common, or 4 milliseconds per tick. Example of where to look:
It sounds as though you have the source code and maybe building your own kernel. Maybe you could use "printk" to add debug entries to kern.log (maybe it writes to dmesg also, I don't know) to help.
doug@s15:~/sguide-1304/lp1159144/serverguide/C$ grep HZ /boot/config-3.2.0-39-generic
# CONFIG_HZ_100 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not set
Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.