Have you tried
    do_gettimeofday()
 
            Norm
----- Original Message -----
Sent: Friday, April 12, 2002 8:07 AM
Subject: [rtl] Current time and date in RTLinux

Hi,
  Is there any method to calculate the current time(in hours, minutes and seconds) and date in the kernel module of RTLinux.  Actually gettimeofday() and localtime() functions are giving correct time but we can execute these functions in linux only. I want to get time and date during execution of the real-time thread. gethrtime( ) function gives time from system bootup, which can not solve my purpose.
 
    Any idea to get the current time and date in  kernel module???
 
 
Regards,
Narendra Kumar Upadhyay
Ph. : 91- 0124- 6439120, 6439121
Ext. : 122, 213

Reply via email to