terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Stopwatch.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Diagnostics
5{
6 // Token: 0x020000E3 RID: 227
7 public class Stopwatch
8 {
9 // Token: 0x06000530 RID: 1328 RVA: 0x00002050 File Offset: 0x00000250
10 public static long GetTimestamp()
11 {
12 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
13 }
14
15 // Token: 0x06000531 RID: 1329 RVA: 0x00014DFC File Offset: 0x00012FFC
16 public Stopwatch()
17 {
18 }
19
20 // Token: 0x170000FF RID: 255
21 // (get) Token: 0x06000532 RID: 1330 RVA: 0x00014E10 File Offset: 0x00013010
23 {
24 get
25 {
26 /*
27An exception occurred when decompiling this method (06000532)
28
29ICSharpCode.Decompiler.DecompilerException: Error decompiling System.TimeSpan System.Diagnostics.Stopwatch::get_Elapsed()
30
31 ---> System.Exception: Basic block has to end with unconditional control flow.
32{
33 IL_0016:
34 stloc:TimeSpan(var_2_1C, call:TimeSpan(TimeSpan::FromTicks, ldloc:int64(var_1_0B)))
35}
36
37 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
38 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
39 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
40 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
41 --- End of inner exception stack trace ---
42 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
43 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
44*/;
45 }
46 }
47
48 // Token: 0x17000100 RID: 256
49 // (get) Token: 0x06000533 RID: 1331 RVA: 0x00014E3C File Offset: 0x0001303C
51 {
52 get
53 {
54 int num = 1;
55 if (num == 0)
56 {
57 }
58 if (num != 0)
59 {
60 return this.ElapsedTicks;
61 }
64 throw new OverflowException();
65 }
66 }
67
68 // Token: 0x17000101 RID: 257
69 // (get) Token: 0x06000534 RID: 1332 RVA: 0x00014E64 File Offset: 0x00013064
70 public long ElapsedTicks
71 {
72 get
73 {
74 if (this.is_running)
75 {
76 long num = this.elapsed;
77 long num2 = this.started;
78 }
79 return this.elapsed;
80 }
81 }
82
83 // Token: 0x17000102 RID: 258
84 // (get) Token: 0x06000535 RID: 1333 RVA: 0x00014E90 File Offset: 0x00013090
85 public bool IsRunning
86 {
87 get
88 {
89 return this.is_running;
90 }
91 }
92
93 // Token: 0x06000536 RID: 1334 RVA: 0x00014EA4 File Offset: 0x000130A4
94 public void Reset()
95 {
96 }
97
98 // Token: 0x06000537 RID: 1335 RVA: 0x00014EB4 File Offset: 0x000130B4
99 public void Start()
100 {
101 if (!this.is_running)
102 {
103 this.is_running = true;
104 }
105 }
106
107 // Token: 0x06000538 RID: 1336 RVA: 0x00014ED0 File Offset: 0x000130D0
108 public void Stop()
109 {
110 if (this.is_running)
111 {
112 long num = this.elapsed;
113 long num2 = this.started;
115 }
116 }
117
118 // Token: 0x06000539 RID: 1337 RVA: 0x00014EFC File Offset: 0x000130FC
119 public void Restart()
120 {
121 if (!true)
122 {
123 }
124 this.is_running = true;
125 }
126
127 // Token: 0x0600053A RID: 1338 RVA: 0x00014F14 File Offset: 0x00013114
128 // Note: this type is marked as 'beforefieldinit'.
129 static Stopwatch()
130 {
131 }
132
133 // Token: 0x04000428 RID: 1064
134 public static readonly long Frequency;
135
136 // Token: 0x04000429 RID: 1065
137 public static readonly bool IsHighResolution;
138
139 // Token: 0x0400042A RID: 1066
140 private long elapsed;
141
142 // Token: 0x0400042B RID: 1067
143 private long started;
144
145 // Token: 0x0400042C RID: 1068
146 private bool is_running;
147 }
148}
class f__AnonymousType0<< Count > j__TPar
static readonly long Frequency
Definition Stopwatch.cs:134
static readonly bool IsHighResolution
Definition Stopwatch.cs:137
double TotalMilliseconds
Definition TimeSpan.cs:117