[lkml]   [2004]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: boot time, process start time, and NOW time
Albert Cahalan wrote:
>>>That's userspace, which works fine on a 2.4.xx kernel.
>>>If userspace were to change, it wouldn't work OK for
>>>a 2.4.xx kernel anymore. So consider that cast in stone.
>>>"now" is the time() function. Using gettimeofday()
>>>would only make sense if I decided to pay the cost
>>>of asking for the time every time I look at a task.

While on the subject of time, is it possible to get a monotonic timer
with 1ms or better resolution?
We need this for linux multimedia applications, and it is used to sync
audio and video. Currently we use gettimeofday(). If a movie is playing,
and the user goes and changes the time, or changes the timezone, we do
not want that to effect the movie playing. I have not been able to find
a monotonic 1ms accurate timer in the linux kernel, that is available to
applications, and has little overhead. Some efficient ioctl or function
call for uptime to 1ms accuracy would do perfectly.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:05    [W:0.123 / U:3.292 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site