slang::ast::TimeLiteral class final

Represents a time literal.

Base classes

class Expression
The base class for all expressions in SystemVerilog.

Public functions

double getValue() const
Gets the value of the literal.
TimeScale getScale() const
Gets the time scale in effect for the context of the expression.