Not working properly
DateTime.TimeFormat = "hh:mm"
Dim StartTime As Long= DateTime.Time(DateTime.Now)
Dim EndTime As Long= DateTime.Time(DateTime.Now)
Dim ElapsedTime As Long= EndTime - StartTime 'how many milliseconds did that take?
Log(ElapsedTime)
Error:
Logger connected to: samsung SM-A725F
--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
11/15/2022
12:48:36
** Activity (main) Resume **
Error occurred on line: 44 (Main)
java.lang.NumberFormatException: For input string: "10:20"
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
11/15/2022
12:50:13
** Activity (main) Resume **
Error occurred on line: 44 (Main)
java.lang.NumberFormatException: For input string: "10:20"
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **