Add Stopwatch

This commit is contained in:
ousttrue
2018-05-29 17:52:56 +09:00
parent 4b73425933
commit 839f2ca0bb

View File

@@ -99,6 +99,8 @@ namespace VRM
Undo.PerformUndo();
}
var sw = System.Diagnostics.Stopwatch.StartNew();
VRMExporter.Export(target, path, gltf => {
gltf.extensions.VRM.meta.title = Title;
@@ -106,6 +108,8 @@ namespace VRM
});
Debug.LogFormat("Export elapsed {0}", sw.Elapsed);
if (Target.gameObject!=target)
{
GameObject.DestroyImmediate(target);