Thank You Erel.
I did as You suggested.
I'm using jSQL module to talk with my database.
I used a timer to query DB for periodical check (every 5sec).
Main:
Sub Interval_query_tick
TextField2.Text=mysql1.DB_GET_RESPOND
End Sub
On module class
mysql:
Sub DB_GET_RESPOND
Dim n As Long= DateTime.Now
Dim Cursor2 As ResultSet
Cursor2 = sql1.ExecQuery("SELECT KEY FROM prod.main ORDER BY prod.KEY DESC LIMIT 1")
Do While Cursor2.NextRow
Return (( DateTime.Now-n) * 0.001)
Loop
End Sub
Is it a better way to query and get execution / respond time?
I want check 2 data bases on same time.
I was thinking to use 2 timers one per DB.
is it a good idea?