Anything that interests me finds place here. Software dominates my interests and hence a good part of this blog as well.
String.format(
"SQL completed in %.2f seconds.",
((float)(endTime - startTime)/1000)
)
Output:
SQL completed in 0.02 seconds.
Display the parameter as a floating point decimal (%f) with 2 decimal places (%.2f).
Post a Comment
No comments:
Post a Comment