Which the Java class I would have to place the code below to calculate separately the cost of serialization and deserialization in client and the server?
long start = System.currentTimeMillis();
//method of serialization ou deserialization
long end = System.currentTimeMillis();
long cost = end - start;
Exists some another more correct way to calculate these costs?
Thanks, Ana Carolina