How do i use 'units'?

Example :

leaf {

units “sec”;
}

I use ‘units’ for writing unit.
But i can’t see “sec” at confd.

I think when i get the leaf data, then the result is “50sec”,
but the result is “50”.

The units is just like comment?

Yes. See the “YANG manual” aka RFC 7950:
https://tools.ietf.org/html/rfc7950#section-7.3.3