Пример #1
0
 private TSOManager()
 {
     currentTime = TimeStamp.First;
 }
Пример #2
0
 /// <summary>
 /// Get the current time stamp and increment the
 /// time representation. Use this method if you wish
 /// to do something with the current timestamp
 /// </summary>
 /// <returns></returns>
 public TimeStamp AllocateTimeStamp()
 {
     lock (tsoMutex)
     {
         TimeStamp ret = currentTime;
         currentTime = currentTime.Next();
         return ret;
     }
     
 }