资源加载中... loading...

UnixNano

Get the nanosecond timestamp of the current moment.

The UnixNano() function returns the nanosecond timestamp. number

UnixNano()

function main() {
    var time = UnixNano() / 1000000
    Log(_N(time, 0))
}
def main():
    time = UnixNano()
    Log(time)
void main() {
    auto time = UnixNano();
    Log(time);
}

If you need to get millisecond timestamps, you can use the following code:

{@fun/Global/Unix Unix}

Encode Unix