コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

2021-02-12から1日間の記事一覧

【C#】var sw = new Stopwatch(); sw.Start(); をまとめて行う Stopwatch.StartNew

C#

概要 using System.Diagnostics; using System.Threading.Tasks; using UnityEngine; public class Example : MonoBehaviour { private async void Start() { var sw = new Stopwatch(); sw.Start(); await Task.Delay( 1000 ); sw.Stop(); print( sw.Elapse…