# How to display time in femtoseconds for uvm\_info statements

**URL:** <https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170>\
**Category:** UVM\
**Tags:** timescale-uvm\_info, UVM, UVM\_VERBOSITY\
**Created:** [February 11, 2020, 7:45pm UTC](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170 "2020-02-11T19:45:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sj1992](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@sj1992](https://verificationacademy.com/forums/u/sj1992)\
**Post date:** [February 11, 2020, 7:45pm UTC](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/1 "2020-02-11T19:45:34Z")

</div>

Hi,

Is there is command-line option to display time in femtoseconds for uvm\_info statements? At present all the uvm statements are printed out in nanoseconds

Thanks

---

<div class="post-metadata">

**Author:** ![kranthikiranufl](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/edb3f5/32.png) [@kranthikiranufl](https://verificationacademy.com/forums/u/kranthikiranufl)\
**Post date:** [February 11, 2020, 9:15pm UTC](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/2 "2020-02-11T21:15:49Z")

</div>

_In reply to [sj1992](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170):_

Hello,  
You can display time in “fs” by setting the time format.

Use **$timeformat(-15, 5, " fs", 15);** before displaying the time.

This will adjust the time precision to “femtoseconds”.

Hope this helps.

Thanks,  
Kranthi

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [February 11, 2020, 10:51pm UTC](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/3 "2020-02-11T22:51:21Z")

</div>

_In reply to [kranthikiranufl](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/2):_

$timeformat will indeed change the scale of the UVM messages, however it will not change the precision. The uvm\_report\_server uses $time instead of $realtime. That means you are stuck at a minimum of whatever timescale your UVM package was compiled with.

---

<div class="post-metadata">

**Author:** ![kranthikiranufl](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/k/edb3f5/32.png) [@kranthikiranufl](https://verificationacademy.com/forums/u/kranthikiranufl)\
**Post date:** [February 12, 2020, 2:55am UTC](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/4 "2020-02-12T02:55:13Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/3):_

Hello Dave,  
I meant it changes the time value in printing, not in the simulation.

Anyways, thanks for clarifying it.

Thanks  
Kranthi

---

<div class="post-metadata">

**Author:** ![xigen.long](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/x/2acd7d/32.png) [@xigen.long](https://verificationacademy.com/forums/u/xigen.long)\
**Post date:** [March 11, 2022, 1:51am UTC](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/5 "2022-03-11T01:51:06Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/4):_

Hi Dave,

I found that the uvm\_report\_server uses $realtime in UVM-1.1, but in UVM-1.2 it changes to use $time.

Whys does it change to use $time in UVM-1.2? I think $realtime is more convenient.

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [March 12, 2022, 7:06am UTC](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/6 "2022-03-12T07:06:09Z")

</div>

_In reply to [xigen.long](https://verificationacademy.com/forums/t/how-to-display-time-in-femtoseconds-for-uvm-info-statements/37170/5):_

This is a UVM bug which I just reported.
