Re: printing current system time from kernel space

From: Sitsofe Wheeler
Date: Mon Sep 22 2008 - 03:07:35 EST


George Nychis wrote:
I spent some time googling, but could not find out how or if it is possible to read the current system time in kernel space. I could insert a printk() somewhere in usbdev_read() then.

If that's what you want to do could you not turn on timestamps on printk (CONFIG_PRINTK_TIME in the kernel hacking menu)?

--
Sitsofe | http://sucs.org/~sits/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/