mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* time function behaving strane
@ 2006-02-03  4:15 Conio sandiago
  2006-02-03 19:19 ` john stultz
  0 siblings, 1 reply; 3+ messages in thread
From: Conio sandiago @ 2006-02-03  4:15 UTC (permalink / raw)
  To: linux-kernel

Hi all,
i am using time function in my application.
When i call the try function in a loop of say 1 lac iterations then i
m facing strange behaviour.

What i am doing is that i am making a call twice to time function
inside every iteration and i compare the time of both the calls.
But sometimes the time obtained from recent call is 1 second less than
the previous call.

Has anybody observed such kind of problem??

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: time function behaving strane
  2006-02-03  4:15 time function behaving strane Conio sandiago
@ 2006-02-03 19:19 ` john stultz
  2006-02-03 19:30   ` Thomas Gleixner
  0 siblings, 1 reply; 3+ messages in thread
From: john stultz @ 2006-02-03 19:19 UTC (permalink / raw)
  To: Conio sandiago; +Cc: linux-kernel

On Fri, 2006-02-03 at 09:45 +0530, Conio sandiago wrote:
> Hi all,
> i am using time function in my application.
> When i call the try function in a loop of say 1 lac iterations then i
> m facing strange behaviour.
> 
> What i am doing is that i am making a call twice to time function
> inside every iteration and i compare the time of both the calls.
> But sometimes the time obtained from recent call is 1 second less than
> the previous call.
> 
> Has anybody observed such kind of problem??

Time inconsistencies are possible with some hardware, although full
second inconsistencies are a bit large.

Please open a bug at  http://bugzilla.kernel.org

Attach a full dmesg log and assign it to me.

thanks
-john



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: time function behaving strane
  2006-02-03 19:19 ` john stultz
@ 2006-02-03 19:30   ` Thomas Gleixner
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2006-02-03 19:30 UTC (permalink / raw)
  To: john stultz; +Cc: Conio sandiago, linux-kernel

On Fri, 2006-02-03 at 11:19 -0800, john stultz wrote:
> On Fri, 2006-02-03 at 09:45 +0530, Conio sandiago wrote:
> > Hi all,
> > i am using time function in my application.
> > When i call the try function in a loop of say 1 lac iterations then i
> > m facing strange behaviour.
> > 
> > What i am doing is that i am making a call twice to time function
> > inside every iteration and i compare the time of both the calls.
> > But sometimes the time obtained from recent call is 1 second less than
> > the previous call.
> > 
> > Has anybody observed such kind of problem??
> 
> Time inconsistencies are possible with some hardware, although full
> second inconsistencies are a bit large.
> 
> Please open a bug at  http://bugzilla.kernel.org
> 
> Attach a full dmesg log and assign it to me.

Please provide also test code which makes that problem visible.

	tglx



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-03 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-03  4:15 time function behaving strane Conio sandiago
2006-02-03 19:19 ` john stultz
2006-02-03 19:30   ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®