Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

nanosecondsFromPosix

Threaded.nanosecondsFromPosix
pub fn nanosecondsFromPosix(timespec: *const posix.timespec) i96

File

lib/std/Io/Threaded.zig:14443

Code

pub fn nanosecondsFromPosix(timespec: *const posix.timespec) i96 {
    return @intCast(@as(i128, timespec.sec) * std.time.ns_per_s + timespec.nsec);
}