private TSOManager() { currentTime = TimeStamp.First; }
/// <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; } }