• Miro Knejp's avatar
    "duration" as example of a complex external type · 4caf5c6e
    Miro Knejp authored
    This demonstrates some fancy template usage to provide a std::chrono::duration<rep, period> capable external type. It is mapped to NSTimeInterval and java.time.Duration.
    
    It can be used after importing "duration.yaml" as follows:
    - duration<i32, s> => std::chrono::duration<i32, std::ratio<1>>
    - duration<f64, ns> => std::chrono::duration<double, std::nano>
    4caf5c6e
DBRecordWithDurationAndDerivings+Private.mm 689 Bytes