title: How do I store time in a variable?
body: <p>One of my classes <code>Event</code> will have an instance field which is called <code>timeStamp</code>. Now, I have another class which will set the <code>timeStamp</code> according to some other algorithm which is not really relevant here.</p>
  
  <p>My question is what <strong>type</strong> should I store this <code>timeStamp</code> in? From what I've researched so far I have the impression that it should be calculated in milliseconds and thus store it in a <code>double</code> perhaps.</p>
  
  <p>Basically the <code>Clock</code> class I have simulates time in the following format : hh:mm:ss. However, since it's a discrete event simulation that I'm developing it jumps from event to event, which it determines by <code>timeStamp</code> value i.e. each event object has a <code>timeStamp</code> value which is stored in a <code>PrioityQueue</code>. So I thought about storing the <code>timeStamp</code> in the same format as the <code>Clock</code> , which I guess would involve me creating a new class <code>TimeStamp</code> that then becomes the type of the <code>timestamp</code>. Or should I just make the clock simulate time in milliseconds?</p>
  
  <p>What are your thoughts on this? I'm not sure on the most efficient/clean way to implement this.</p>