@@ -42,7 +42,6 @@ public DosLib() {
4242 * return system time
4343 */
4444 @ PascalMethod (description = "Dos library" , returns = "void" )
45- @ SuppressWarnings ("unused" )
4645 public static void getTime (PascalReference <Object > hour ,
4746 PascalReference <Object > minute ,
4847 PascalReference <Object > second ,
@@ -51,14 +50,13 @@ public static void getTime(PascalReference<Object> hour,
5150 hour .set (calendar .get (Calendar .HOUR ));
5251 minute .set (calendar .get (Calendar .MINUTE ));
5352 second .set (calendar .get (Calendar .SECOND ));
54- sec100 .set (calendar .get (Calendar .MILLISECOND ) / 100 );
53+ sec100 .set (calendar .get (Calendar .MILLISECOND ) / 10 );
5554 }
5655
5756 /**
5857 * return system date
5958 */
6059 @ PascalMethod (description = "Dos library" , returns = "void" )
61- @ SuppressWarnings ("unused" )
6260 public static void getDate (PascalReference <Integer > year ,
6361 PascalReference <Integer > month ,
6462 PascalReference <Integer > mday ,
@@ -108,8 +106,8 @@ public void declareFunctions(ExpressionContextMixin parentContext) {
108106 }
109107
110108 @ PascalMethod (description = "Dos library" , returns = "void" )
111- @ SuppressWarnings ("unused" )
112109 public int dosVersion () {
113110 return Build .VERSION .SDK_INT ;
114111 }
112+
115113}
0 commit comments