GetCurrentTicks() приватный Метод

private GetCurrentTicks ( ) : double
Результат double
Пример #1
0
 public void Complete()
 {
     EndTicks    = TimeRecorder.GetCurrentTicks();
     EndTime     = DateTime.Now;
     IsCompleted = true;
     TimeRecorder.AddCompletedRecorderItem(this);
 }
Пример #2
0
        public RecorderItem(TimeRecorder timeRecorder, string description)
        {
            if (timeRecorder == null)
            {
                throw new ArgumentNullException("timeRecorder");
            }

            Id                 = Guid.NewGuid().ToString();
            TimeRecorder       = timeRecorder;
            StartTicks         = TimeRecorder.GetCurrentTicks();
            StartTime          = DateTime.Now;
            Description        = description;
            IsCompleted        = false;
            ChildRecorderItems = new List <RecorderItem>();
        }
        public Action(TimeRecorder timeRecorder, string description)
        {
            if (timeRecorder == null)
            {
                throw new ArgumentNullException("timeRecorder");
            }

            Id = Guid.NewGuid().ToString();
            TimeRecorder = timeRecorder;
            StartTicks = TimeRecorder.GetCurrentTicks();
            StartTime = DateTime.Now;
            Description = description;
            IsCompleted = false;
            ChildActions = new List<Action>();
        }