dbms_utility.get_time含义

在运行程序的时候,常常使用dbms_utility.get_time,取2个点的时间,并相减,来获取运行时间。
eg:

declare i number;
j number;
begin
  i:=dbms_utility.get_time;
  dbms_lock.sleep(1.51);
  j:=dbms_utility.get_time;
  dbms_output.put_line(j-i);
end;  
  
那么dbms_utility.get_time究竟表示什么含义呢?查了下官方文档,同时google了下,单个该函数没有什么具体含义,主要是2个值相减取差值。

官方文档参考:
GET_TIME Function

This function determines the current time in 100th's of a second. This subprogram is primarily used for determining elapsed time. The subprogram is called twice – at the beginning and end of some process – and then the first (earlier) number is subtracted from the second (later) number to determine the time elapsed.

Syntax
DBMS_UTILITY.GET_TIME 
  RETURN NUMBER;

Return Values

Time is the number of 100th's of a second from the point in time at which the subprogram is invoked.

Usage Notes

Numbers are returned in the range -2147483648 to 2147483647 depending on platform. and machine, and your application must take the sign of the number into account in determining the interval. For instance, in the case of two negative numbers, application logic must allow that the first (earlier) number will be larger than the second (later) number which is closer to zero. By the same token, your application should also allow that the first (earlier) number be negative and the second (later) number be positive.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23700752/viewspace-735966/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23700752/viewspace-735966/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值