Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: get_time - negative time intervals ???

Re: get_time - negative time intervals ???

From: Finn Ellebaek Nielsen <fen_at_changegroup.dk>
Date: Tue, 14 Sep 1999 00:02:03 +0100
Message-ID: <7rjsha$2qr$1@news.inet.tele.dk>


On Windows NT it seems that DBMS_UTILITY.GET_TIME is based on the value of the Win32 function GetTickCount (returns number of milliseconds since the OS was started), which is recycled each about 50 days. DBMS_UTILITY.GET_TIME is not guaranteed to keep on returning increasing numbers...

HTH. Finn

mminfo <mminfo_at_email.msn.com> wrote in message news:OIWmEBh$#GA.280_at_cpmsnbbsa02...
> We have a procedure that tracks the execution time of SPs by taking the
> difference between the SPs start and end times, as reported by get_time
> (dbms_utility).
>
> The problem we have been having is that this procedure is occaisionally
> netting us negative time intervals - i.e. time(END of SP) - time(START of
> SP) < 0!
>
> The problem is (seemingly) intermittent - it has happened more than once,
> however. There seems to be no correlation with time of day (incl. noon
and
> midnight), nor with any given SP, and we are certain that at least some of
> the SPs take more than 1/100 th of a second to execute, so the probability
> of some kind of rounding error seems small.
>
> Any explanations or tips would be very much appreciated.
>
> Thanks for your time,
> Mark
>
>
Received on Mon Sep 13 1999 - 18:02:03 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US