Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Time in microseconds

Former Member
0 Likes
2,280

Can someone tell me how can I get the current time to the microsecond level. If I use sy-uzeit, it provides only till the seconds level.

Thanks..

Swetha.

3 REPLIES 3
Read only

Former Member
0 Likes
1,282

hi,

5555178 Microseconds = 5.555178 Seconds

so

Microseconds = ( 5.555178 / 5555178 ) Seconds

so convert hours, minutes to seconds and then convert seconds to micro seconds .....

Regards,

Santosh

Read only

Former Member
0 Likes
1,282

Try the following:


DATA rtime TYPE I.
SET RUN TIME CLOCK RESOLUTION HIGH.
GET RUN TIME FIELD rtime.

or have a look at global ABAP class CL_ABAP_RUNTIME

Read only

Former Member
0 Likes
1,282

Look at GET RUN TIME FIELD f where field f is an integer. The number is in microseconds.

or use a field type TIMESTAMPL ( not just TIMESTAMP !!! )and fill it using statement GET TIME STAMP FIELD ...

Edited by: S@N on Apr 8, 2008 4:08 PM