Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Get the run time with seconds and milliseconds

699039Jan 21 2010 — edited Jan 21 2010
Hi for All,

how can I solve this problem?
Declare
   v Timestamp;
Begin
   v := current_timestamp;

   dbms_output.put_line(to_char(v,'ss.ff3'));

   dbms_lock.sleep(1);

   v := current_timestamp - v;

   dbms_output.put_line(to_char(v,'ss.ff3') || 'Seconds');
End;
Result e.g:

1.182 Seconds
Regards,
This post has been answered by 730428 on Jan 21 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2010
Added on Jan 21 2010
3 comments
1,829 views