Stopwatch.GetElapsedTime 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| GetElapsedTime(Int64) | 
						 获取自使用 GetTimestamp()检索的值以来  | 
        	
| GetElapsedTime(Int64, Int64) | 
						 获取使用 GetTimestamp()检索到的两个时间戳之间的已用时间。  | 
        	
GetElapsedTime(Int64)
- Source:
 - Stopwatch.cs
 
- Source:
 - Stopwatch.cs
 
- Source:
 - Stopwatch.cs
 
获取自使用 GetTimestamp()检索的值以来startingTimestamp的经过时间。
public:
 static TimeSpan GetElapsedTime(long startingTimestamp);
	public static TimeSpan GetElapsedTime (long startingTimestamp);
	static member GetElapsedTime : int64 -> TimeSpan
	Public Shared Function GetElapsedTime (startingTimestamp As Long) As TimeSpan
	参数
- startingTimestamp
 - Int64
 
标记时间段开始的时间戳。
返回
一个 TimeSpan ,表示开始时间戳与此调用时间之间的已用时间。
适用于
GetElapsedTime(Int64, Int64)
- Source:
 - Stopwatch.cs
 
- Source:
 - Stopwatch.cs
 
- Source:
 - Stopwatch.cs
 
获取使用 GetTimestamp()检索到的两个时间戳之间的已用时间。
public:
 static TimeSpan GetElapsedTime(long startingTimestamp, long endingTimestamp);
	public static TimeSpan GetElapsedTime (long startingTimestamp, long endingTimestamp);
	static member GetElapsedTime : int64 * int64 -> TimeSpan
	Public Shared Function GetElapsedTime (startingTimestamp As Long, endingTimestamp As Long) As TimeSpan
	参数
- startingTimestamp
 - Int64
 
标记时间段开始的时间戳。
- endingTimestamp
 - Int64
 
标记时间段结束的时间戳。
返回
一个 TimeSpan ,表示开始时间戳和结束时间戳之间的已用时间。