Exemplo n.º 1
0
		/// <summary>
		/// Copy an instance of the <see cref="UnityEzExp.EzTimer"/>.
		/// </summary>
		/// <param name="toCopy">Instance to copy.</param>
		public EzTimer(EzTimer toCopy): this()
        {
			_temporalState = toCopy._temporalState;
			_startTime = toCopy._startTime;
			foreach(float b in toCopy._breaks) { _breaks.Add(b); }
			_endTime = toCopy._endTime;
			// forces duration to be computed before assigning it
			_duration = toCopy.GetRawDuration();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the main duration of the trial without formatting.
 /// </summary>
 public float GetMainRawDuration()
 {
     return(_mainTimer.GetRawDuration());
 }