• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get the current time

 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to print out the current time precise to millisecond to the console. right before the whole program is run and right after the program is run, what should i do?
thanks!
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depending on what exactly you want to accomplish, there are different options:

OR

OR

... and many other choices and options. Pick whatever suites you best
Eugene.
 
Jackie Wang
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the prompt response eugene, apprecicated htat
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic