daily update on 20230516 by nitload youmu, geometry interfaces created between cs and c
This commit is contained in:
@@ -6,48 +6,15 @@ using StgSharp.Math;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.Intrinsics.X86;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
|
||||
internal class Program
|
||||
{
|
||||
private unsafe static void Main(string[] args)
|
||||
{
|
||||
#if DEBUG
|
||||
Graphic.Window(800,600);
|
||||
int a = Graphic.initWindow(800,600);
|
||||
/*
|
||||
double time;
|
||||
TimeSpan span;
|
||||
float mf = 1.2e10f;
|
||||
for (int i = 0; i < 100; i++)
|
||||
{
|
||||
Stopwatch stopwatch01 = Stopwatch.StartNew();
|
||||
stopwatch01.Start();
|
||||
for (int t = 0; t < 1000000; t++)
|
||||
{
|
||||
mf = MathF.Sqrt(t);
|
||||
}
|
||||
stopwatch01.Stop();
|
||||
span = stopwatch01.Elapsed;
|
||||
time = span.TotalMilliseconds;
|
||||
Console.WriteLine(time);
|
||||
|
||||
Stopwatch stopwatch02 = new Stopwatch();
|
||||
stopwatch02.Start();
|
||||
for (int t = 0; t < 1000000; t++)
|
||||
{
|
||||
mf = Calc.Sqrt(t);
|
||||
}
|
||||
stopwatch02.Stop();
|
||||
span = stopwatch02.Elapsed;
|
||||
time = span.TotalMilliseconds;
|
||||
Console.WriteLine(time);
|
||||
|
||||
Console.WriteLine();
|
||||
}
|
||||
/**/
|
||||
#endif
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user