Functions

The following functions are available globally.

  • Generates a new unique node ID.

    Declaration

    Objective-C

    extern OWLNodeID OWLNodeID_new()

    Swift

    func OWLNodeID_new() -> OWLNodeID
  • Returns the string representation of a given node ID.

    Declaration

    Objective-C

    extern NSString *_Nonnull OWLNodeID_toString(OWLNodeID nodeID)

    Swift

    func OWLNodeID_toString(_ nodeID: OWLNodeID) -> String
  • Converts nanosecond intervals retrieved via mach_absolute_time to milliseconds.

    Declaration

    Objective-C

    static double mach_time_to_millis(uint64_t start, uint64_t end)

    Swift

    func mach_time_to_millis(_ start: UInt64, _ end: UInt64) -> Double

    Parameters

    start

    Start timestamp.

    end

    End timestamp.

    Return Value

    Elapsed milliseconds.