Skip to content

Commit

Permalink
Add Nanoseconds constructors for system durations
Browse files Browse the repository at this point in the history
  • Loading branch information
HGuillemet committed Jul 2, 2024
1 parent adaa60d commit eab2f68
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/bytedeco/javacpp/chrono/Nanoseconds.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ public class Nanoseconds extends Pointer {
private native void allocate(@Const @ByRef Minutes d);
public Nanoseconds(Hours d) { allocate(d); }
private native void allocate(@Const @ByRef Hours d);
public Nanoseconds(SystemDuration d) { super((Pointer)null); allocate(d); };
private native void allocate(@Const @ByRef SystemDuration d);
public Nanoseconds(HighResolutionDuration d) { super((Pointer)null); allocate(d); };
private native void allocate(@Const @ByRef HighResolutionDuration d);
public Nanoseconds(SteadyDuration d) { super((Pointer)null); allocate(d); };
private native void allocate(@Const @ByRef SteadyDuration d);

public native @Name("operator=") @ByRef Nanoseconds put(@Const @ByRef Nanoseconds other);
public native @Name("operator-") @ByVal Nanoseconds negate();
Expand Down

0 comments on commit eab2f68

Please sign in to comment.