Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: get_cpu_time vs. get_time
cpiodumpv_at_gmail.com wrote:
> can someone explain this?
>
>> list> 9* end;
> 1 declare
> 2 l_temp number;
> 3 begin
> 4 l_temp := DBMS_UTILITY.get_cpu_time;
> 5 dbms_output.put_line ( 'before=' || l_temp );
> 6 dbms_lock.sleep ( 5 );
> 7 l_temp := DBMS_UTILITY.get_cpu_time;
> 8 dbms_output.put_line ( 'after=' || l_temp );
>> /
>> list> 9* end;
> 1 declare
> 2 l_temp number;
> 3 begin
> 4 l_temp := DBMS_UTILITY.get_time;
> 5 dbms_output.put_line ( 'before=' || l_temp );
> 6 dbms_lock.sleep ( 5 );
> 7 l_temp := DBMS_UTILITY.get_time;
> 8 dbms_output.put_line ( 'after=' || l_temp );
>> /
Certainly ... get_cpu_time does not do what you think it does.
GET_CPU_TIME: Returns the current CPU time in 100th's of a second GET_TIME: Returns the current time in 100th's of a second
Read The Fine Manuals at http://tahiti.oracle.com. ;-)
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Fri Jan 12 2007 - 10:52:18 CST