Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadCommandSystem
Commits
db26acd0
Commit
db26acd0
authored
May 02, 2017
by
legoc
Browse files
Printing the time to get the configuration.
parent
64edb978
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/nscclient/dataprovider/ServantManagerAccessor.java
View file @
db26acd0
...
...
@@ -18,6 +18,7 @@
package
fr.ill.ics.nscclient.dataprovider
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.LinkedHashMap
;
...
...
@@ -137,10 +138,16 @@ public class ServantManagerAccessor {
.
setDatabaseID
(
databaseID
)
.
build
();
Date
d1
=
new
Date
();
servantManagerRequester
.
sendTwoParts
(
type
.
toByteArray
(),
request
.
toByteArray
());
try
{
ServantData
response
=
ServantData
.
parseFrom
(
servantManagerRequester
.
receive
());
byte
[]
data
=
servantManagerRequester
.
receive
();
Date
d2
=
new
Date
();
System
.
out
.
println
(
"Received and parsed whole configuration "
+
data
.
length
+
" in "
+
(
d2
.
getTime
()
-
d1
.
getTime
())
+
"ms"
);
ServantData
response
=
ServantData
.
parseFrom
(
data
);
return
response
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment