Skip to content

Commit e6244bd

Browse files
committed
modified tests stopwatch to disply TotalMilliseconds (double)
1 parent b461aa1 commit e6244bd

8 files changed

Lines changed: 56 additions & 56 deletions

File tree

Assets/OxGFrame/AssetLoader/Tests/Scripts/Editor/Bundle/AESTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ public void EncryptDecryptBytesFromData()
2727
stopwatch.Start();
2828
bool encryptResult = AES.EncryptBytes(ref testBytes, key, iv);
2929
stopwatch.Stop();
30-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] AES.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
30+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] AES.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
3131
Assert.IsTrue(encryptResult, "In-place encryption failed");
3232

3333
stopwatch.Reset();
3434

3535
stopwatch.Start();
3636
bool decryptResult = AES.DecryptBytes(ref testBytes, key, iv);
3737
stopwatch.Stop();
38-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] AES.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
38+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] AES.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
3939
Assert.IsTrue(decryptResult, "In-place decryption failed");
4040

4141
Assert.AreEqual(originalBytes, testBytes, "Decrypted content does not match the original content");
@@ -54,15 +54,15 @@ public void EncryptDecryptWriteFile()
5454
stopwatch.Start();
5555
bool encryptResult = AES.WriteFile.EncryptFile(tempFile, key, iv);
5656
stopwatch.Stop();
57-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] AES.WriteFile.EncryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
57+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] AES.WriteFile.EncryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
5858
Assert.IsTrue(encryptResult, "File encryption failed");
5959

6060
stopwatch.Reset();
6161

6262
stopwatch.Start();
6363
bool decryptResult = AES.WriteFile.DecryptFile(tempFile, key, iv);
6464
stopwatch.Stop();
65-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] AES.WriteFile.DecryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
65+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] AES.WriteFile.DecryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
6666
Assert.IsTrue(decryptResult, "File decryption failed");
6767

6868
byte[] decryptedData = File.ReadAllBytes(tempFile);
@@ -84,7 +84,7 @@ public void EncryptDecryptBytesFromFile()
8484
stopwatch.Start();
8585
byte[] encryptedBytes = AES.EncryptBytes(tempFile, key, iv);
8686
stopwatch.Stop();
87-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] AES.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
87+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] AES.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
8888
Assert.IsNotNull(encryptedBytes, "Encrypted bytes returned null");
8989
Assert.IsNotEmpty(encryptedBytes, "Encrypted bytes are empty");
9090

@@ -96,7 +96,7 @@ public void EncryptDecryptBytesFromFile()
9696
stopwatch.Start();
9797
byte[] decryptedBytes = AES.DecryptBytes(encryptedFile, key, iv);
9898
stopwatch.Stop();
99-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] AES.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
99+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] AES.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
100100
Assert.IsNotNull(decryptedBytes, "Decrypted bytes returned null");
101101
Assert.AreEqual(testData, decryptedBytes, "Decrypted content does not match the original content");
102102

@@ -130,7 +130,7 @@ public void DecryptStream()
130130
Assert.AreEqual(testData, decryptedData, "Stream decrypted content does not match");
131131
}
132132
}
133-
UnityEngine.Debug.Log($"[DecryptStream] AES.DecryptStream execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
133+
UnityEngine.Debug.Log($"[DecryptStream] AES.DecryptStream execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
134134

135135
File.Delete(tempFile);
136136
}

Assets/OxGFrame/AssetLoader/Tests/Scripts/Editor/Bundle/ChaCha20Tests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ public void EncryptDecryptBytesFromData()
2828
stopwatch.Start();
2929
bool encryptResult = ChaCha20.EncryptBytes(ref testBytes, key, nonce, counter);
3030
stopwatch.Stop();
31-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] ChaCha20.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
31+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] ChaCha20.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
3232
Assert.IsTrue(encryptResult, "In-place encryption failed");
3333

3434
stopwatch.Reset();
3535

3636
stopwatch.Start();
3737
bool decryptResult = ChaCha20.DecryptBytes(ref testBytes, key, nonce, counter);
3838
stopwatch.Stop();
39-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] ChaCha20.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
39+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] ChaCha20.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
4040
Assert.IsTrue(decryptResult, "In-place decryption failed");
4141

4242
Assert.AreEqual(originalBytes, testBytes, "Decrypted content does not match the original content");
@@ -55,15 +55,15 @@ public void EncryptDecryptWriteFile()
5555
stopwatch.Start();
5656
bool encryptResult = ChaCha20.WriteFile.EncryptFile(tempFile, key, nonce, counter);
5757
stopwatch.Stop();
58-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] ChaCha20.WriteFile.EncryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
58+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] ChaCha20.WriteFile.EncryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
5959
Assert.IsTrue(encryptResult, "File encryption failed");
6060

6161
stopwatch.Reset();
6262

6363
stopwatch.Start();
6464
bool decryptResult = ChaCha20.WriteFile.DecryptFile(tempFile, key, nonce, counter);
6565
stopwatch.Stop();
66-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] ChaCha20.WriteFile.DecryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
66+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] ChaCha20.WriteFile.DecryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
6767
Assert.IsTrue(decryptResult, "File decryption failed");
6868

6969
byte[] decryptedData = File.ReadAllBytes(tempFile);
@@ -85,7 +85,7 @@ public void EncryptDecryptBytesFromFile()
8585
stopwatch.Start();
8686
byte[] encryptedBytes = ChaCha20.EncryptBytes(tempFile, key, nonce, counter);
8787
stopwatch.Stop();
88-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] ChaCha20.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
88+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] ChaCha20.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
8989
Assert.IsNotNull(encryptedBytes, "Encrypted bytes returned null");
9090
Assert.IsNotEmpty(encryptedBytes, "Encrypted bytes are empty");
9191

@@ -97,7 +97,7 @@ public void EncryptDecryptBytesFromFile()
9797
stopwatch.Start();
9898
byte[] decryptedBytes = ChaCha20.DecryptBytes(encryptedFile, key, nonce, counter);
9999
stopwatch.Stop();
100-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] ChaCha20.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
100+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] ChaCha20.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
101101
Assert.IsNotNull(decryptedBytes, "Decrypted bytes returned null");
102102
Assert.AreEqual(testData, decryptedBytes, "Decrypted content does not match the original content");
103103

@@ -131,7 +131,7 @@ public void DecryptStream()
131131
Assert.AreEqual(testData, decryptedData, "Stream decrypted content does not match");
132132
}
133133
}
134-
UnityEngine.Debug.Log($"[DecryptStream] ChaCha20.DecryptStream execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
134+
UnityEngine.Debug.Log($"[DecryptStream] ChaCha20.DecryptStream execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
135135

136136
File.Delete(tempFile);
137137
}

Assets/OxGFrame/AssetLoader/Tests/Scripts/Editor/Bundle/HT2XORPlusTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ public void EncryptDecryptBytesFromData()
2929
stopwatch.Start();
3030
bool encryptResult = HT2XORPlus.EncryptBytes(testBytes, hKey, tKey, j1Key, j2Key);
3131
stopwatch.Stop();
32-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XORPlus.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
32+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XORPlus.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
3333
Assert.IsTrue(encryptResult, "In-place encryption failed");
3434

3535
stopwatch.Reset();
3636

3737
stopwatch.Start();
3838
bool decryptResult = HT2XORPlus.DecryptBytes(testBytes, hKey, tKey, j1Key, j2Key);
3939
stopwatch.Stop();
40-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XORPlus.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
40+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XORPlus.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
4141
Assert.IsTrue(decryptResult, "In-place decryption failed");
4242

4343
Assert.AreEqual(originalBytes, testBytes, "Decrypted content does not match the original content");
@@ -56,15 +56,15 @@ public void EncryptDecryptWriteFile()
5656
stopwatch.Start();
5757
bool encryptResult = HT2XORPlus.WriteFile.EncryptFile(tempFile, hKey, tKey, j1Key, j2Key);
5858
stopwatch.Stop();
59-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XORPlus.WriteFile.EncryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
59+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XORPlus.WriteFile.EncryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
6060
Assert.IsTrue(encryptResult, "File encryption failed");
6161

6262
stopwatch.Reset();
6363

6464
stopwatch.Start();
6565
bool decryptResult = HT2XORPlus.WriteFile.DecryptFile(tempFile, hKey, tKey, j1Key, j2Key);
6666
stopwatch.Stop();
67-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XORPlus.WriteFile.DecryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
67+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XORPlus.WriteFile.DecryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
6868
Assert.IsTrue(decryptResult, "File decryption failed");
6969

7070
byte[] decryptedData = File.ReadAllBytes(tempFile);
@@ -86,7 +86,7 @@ public void EncryptDecryptBytesFromFile()
8686
stopwatch.Start();
8787
byte[] encryptedBytes = HT2XORPlus.EncryptBytes(tempFile, hKey, tKey, j1Key, j2Key);
8888
stopwatch.Stop();
89-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XORPlus.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
89+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XORPlus.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
9090
Assert.IsNotNull(encryptedBytes, "Encrypted bytes returned null");
9191
Assert.IsNotEmpty(encryptedBytes, "Encrypted bytes are empty");
9292

@@ -98,7 +98,7 @@ public void EncryptDecryptBytesFromFile()
9898
stopwatch.Start();
9999
byte[] decryptedBytes = HT2XORPlus.DecryptBytes(encryptedFile, hKey, tKey, j1Key, j2Key);
100100
stopwatch.Stop();
101-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XORPlus.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
101+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XORPlus.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
102102
Assert.IsNotNull(decryptedBytes, "Decrypted bytes returned null");
103103
Assert.AreEqual(testData, decryptedBytes, "Decrypted content does not match the original content");
104104

@@ -132,7 +132,7 @@ public void DecryptStream()
132132
Assert.AreEqual(testData, decryptedData, "Stream decrypted content does not match");
133133
}
134134
}
135-
UnityEngine.Debug.Log($"[DecryptStream] HT2XORPlus.DecryptStream execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
135+
UnityEngine.Debug.Log($"[DecryptStream] HT2XORPlus.DecryptStream execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
136136

137137
File.Delete(tempFile);
138138
}

Assets/OxGFrame/AssetLoader/Tests/Scripts/Editor/Bundle/HT2XORTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ public void EncryptDecryptBytesFromData()
2828
stopwatch.Start();
2929
bool encryptResult = HT2XOR.EncryptBytes(testBytes, hKey, tKey, jKey);
3030
stopwatch.Stop();
31-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XOR.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
31+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XOR.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
3232
Assert.IsTrue(encryptResult, "In-place encryption failed");
3333

3434
stopwatch.Reset();
3535

3636
stopwatch.Start();
3737
bool decryptResult = HT2XOR.DecryptBytes(testBytes, hKey, tKey, jKey);
3838
stopwatch.Stop();
39-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XOR.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
39+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromData] HT2XOR.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
4040
Assert.IsTrue(decryptResult, "In-place decryption failed");
4141

4242
Assert.AreEqual(originalBytes, testBytes, "Decrypted content does not match the original content");
@@ -55,15 +55,15 @@ public void EncryptDecryptWriteFile()
5555
stopwatch.Start();
5656
bool encryptResult = HT2XOR.WriteFile.EncryptFile(tempFile, hKey, tKey, jKey);
5757
stopwatch.Stop();
58-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XOR.WriteFile.EncryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
58+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XOR.WriteFile.EncryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
5959
Assert.IsTrue(encryptResult, "File encryption failed");
6060

6161
stopwatch.Reset();
6262

6363
stopwatch.Start();
6464
bool decryptResult = HT2XOR.WriteFile.DecryptFile(tempFile, hKey, tKey, jKey);
6565
stopwatch.Stop();
66-
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XOR.WriteFile.DecryptFile execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
66+
UnityEngine.Debug.Log($"[EncryptDecryptWriteFile] HT2XOR.WriteFile.DecryptFile execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
6767
Assert.IsTrue(decryptResult, "File decryption failed");
6868

6969
byte[] decryptedData = File.ReadAllBytes(tempFile);
@@ -85,7 +85,7 @@ public void EncryptDecryptBytesFromFile()
8585
stopwatch.Start();
8686
byte[] encryptedBytes = HT2XOR.EncryptBytes(tempFile, hKey, tKey, jKey);
8787
stopwatch.Stop();
88-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XOR.EncryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
88+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XOR.EncryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
8989
Assert.IsNotNull(encryptedBytes, "Encrypted bytes returned null");
9090
Assert.IsNotEmpty(encryptedBytes, "Encrypted bytes are empty");
9191

@@ -97,7 +97,7 @@ public void EncryptDecryptBytesFromFile()
9797
stopwatch.Start();
9898
byte[] decryptedBytes = HT2XOR.DecryptBytes(encryptedFile, hKey, tKey, jKey);
9999
stopwatch.Stop();
100-
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XOR.DecryptBytes execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
100+
UnityEngine.Debug.Log($"[EncryptDecryptBytesFromFile] HT2XOR.DecryptBytes execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
101101
Assert.IsNotNull(decryptedBytes, "Decrypted bytes returned null");
102102
Assert.AreEqual(testData, decryptedBytes, "Decrypted content does not match the original content");
103103

@@ -131,7 +131,7 @@ public void DecryptStream()
131131
Assert.AreEqual(testData, decryptedData, "Stream decrypted content does not match");
132132
}
133133
}
134-
UnityEngine.Debug.Log($"[DecryptStream] HT2XOR.DecryptStream execution time: {stopwatch.ElapsedMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
134+
UnityEngine.Debug.Log($"[DecryptStream] HT2XOR.DecryptStream execution time: {stopwatch.Elapsed.TotalMilliseconds} ms, DataSize: {BundleUtility.GetBytesToString(dataSize)}");
135135

136136
File.Delete(tempFile);
137137
}

0 commit comments

Comments
 (0)