158 lines
5.8 KiB
C#
158 lines
5.8 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
/// <summary>Provides a set of methods and properties that you can use to accurately measure elapsed time.</summary>
|
|
// Token: 0x020000D6 RID: 214
|
|
[Token(Token = "0x20000D6")]
|
|
public class Stopwatch
|
|
{
|
|
/// <summary>Gets the current number of ticks in the timer mechanism.</summary>
|
|
/// <returns>A long integer representing the tick counter value of the underlying timer mechanism.</returns>
|
|
// Token: 0x06000506 RID: 1286 RVA: 0x00004098 File Offset: 0x00002298
|
|
[Token(Token = "0x6000506")]
|
|
[Address(RVA = "0xB55F80", Offset = "0xB54F80", VA = "0x180B55F80")]
|
|
public static long GetTimestamp()
|
|
{
|
|
return 0L;
|
|
}
|
|
|
|
/// <summary>Initializes a new <see cref="T:System.Diagnostics.Stopwatch" /> instance, sets the elapsed time property to zero, and starts measuring elapsed time.</summary>
|
|
/// <returns>A <see cref="T:System.Diagnostics.Stopwatch" /> that has just begun measuring elapsed time.</returns>
|
|
// Token: 0x06000507 RID: 1287 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000507")]
|
|
[Address(RVA = "0x2F47EF0", Offset = "0x2F46EF0", VA = "0x182F47EF0")]
|
|
public static Stopwatch StartNew()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.Stopwatch" /> class.</summary>
|
|
// Token: 0x06000508 RID: 1288 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000508")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public Stopwatch()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the total elapsed time measured by the current instance.</summary>
|
|
/// <returns>A read-only <see cref="T:System.TimeSpan" /> representing the total elapsed time measured by the current instance.</returns>
|
|
// Token: 0x170000C6 RID: 198
|
|
// (get) Token: 0x06000509 RID: 1289 RVA: 0x000040B0 File Offset: 0x000022B0
|
|
[Token(Token = "0x170000C6")]
|
|
public TimeSpan Elapsed
|
|
{
|
|
[Token(Token = "0x6000509")]
|
|
[Address(RVA = "0x2F48360", Offset = "0x2F47360", VA = "0x182F48360")]
|
|
get
|
|
{
|
|
return default(TimeSpan);
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the total elapsed time measured by the current instance, in milliseconds.</summary>
|
|
/// <returns>A read-only long integer representing the total number of milliseconds measured by the current instance.</returns>
|
|
// Token: 0x170000C7 RID: 199
|
|
// (get) Token: 0x0600050A RID: 1290 RVA: 0x000040C8 File Offset: 0x000022C8
|
|
[Token(Token = "0x170000C7")]
|
|
public long ElapsedMilliseconds
|
|
{
|
|
[Token(Token = "0x600050A")]
|
|
[Address(RVA = "0x2F480C0", Offset = "0x2F470C0", VA = "0x182F480C0")]
|
|
get
|
|
{
|
|
return 0L;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the total elapsed time measured by the current instance, in timer ticks.</summary>
|
|
/// <returns>A read-only long integer representing the total number of timer ticks measured by the current instance.</returns>
|
|
// Token: 0x170000C8 RID: 200
|
|
// (get) Token: 0x0600050B RID: 1291 RVA: 0x000040E0 File Offset: 0x000022E0
|
|
[Token(Token = "0x170000C8")]
|
|
public long ElapsedTicks
|
|
{
|
|
[Token(Token = "0x600050B")]
|
|
[Address(RVA = "0x2F482F0", Offset = "0x2F472F0", VA = "0x182F482F0")]
|
|
get
|
|
{
|
|
return 0L;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the <see cref="T:System.Diagnostics.Stopwatch" /> timer is running.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the <see cref="T:System.Diagnostics.Stopwatch" /> instance is currently running and measuring elapsed time for an interval; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170000C9 RID: 201
|
|
// (get) Token: 0x0600050C RID: 1292 RVA: 0x000040F8 File Offset: 0x000022F8
|
|
[Token(Token = "0x170000C9")]
|
|
public bool IsRunning
|
|
{
|
|
[Token(Token = "0x600050C")]
|
|
[Address(RVA = "0x4700C0", Offset = "0x46F0C0", VA = "0x1804700C0")]
|
|
get
|
|
{
|
|
return default(bool);
|
|
}
|
|
}
|
|
|
|
/// <summary>Stops time interval measurement and resets the elapsed time to zero.</summary>
|
|
// Token: 0x0600050D RID: 1293 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600050D")]
|
|
[Address(RVA = "0x2F47E80", Offset = "0x2F46E80", VA = "0x182F47E80")]
|
|
public void Reset()
|
|
{
|
|
}
|
|
|
|
/// <summary>Starts, or resumes, measuring elapsed time for an interval.</summary>
|
|
// Token: 0x0600050E RID: 1294 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600050E")]
|
|
[Address(RVA = "0x2F47F90", Offset = "0x2F46F90", VA = "0x182F47F90")]
|
|
public void Start()
|
|
{
|
|
}
|
|
|
|
/// <summary>Stops measuring elapsed time for an interval.</summary>
|
|
// Token: 0x0600050F RID: 1295 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600050F")]
|
|
[Address(RVA = "0x2F47FF0", Offset = "0x2F46FF0", VA = "0x182F47FF0")]
|
|
public void Stop()
|
|
{
|
|
}
|
|
|
|
/// <summary>Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.</summary>
|
|
// Token: 0x06000510 RID: 1296 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000510")]
|
|
[Address(RVA = "0x2F47E90", Offset = "0x2F46E90", VA = "0x182F47E90")]
|
|
public void Restart()
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the frequency of the timer as the number of ticks per second. This field is read-only.</summary>
|
|
// Token: 0x0400041D RID: 1053
|
|
[Token(Token = "0x400041D")]
|
|
public static readonly long Frequency;
|
|
|
|
/// <summary>Indicates whether the timer is based on a high-resolution performance counter. This field is read-only.</summary>
|
|
// Token: 0x0400041E RID: 1054
|
|
[Token(Token = "0x400041E")]
|
|
public static readonly bool IsHighResolution;
|
|
|
|
// Token: 0x0400041F RID: 1055
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400041F")]
|
|
private long elapsed;
|
|
|
|
// Token: 0x04000420 RID: 1056
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000420")]
|
|
private long started;
|
|
|
|
// Token: 0x04000421 RID: 1057
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000421")]
|
|
private bool is_running;
|
|
}
|
|
}
|