例 次の例では、 を指定された数のティックに初期化TimeSpanするコンストラクター オーバーロードを使用して、いくつかのTimeSpanオブジェクトを作成します。 // Example of the TimeSpan( __int64 ) constructor. using namespace System; // Create a TimeSpan object and display its value. void CreateTimeSpan( __int64 ticks ) { TimeSpan elapsedTime = TimeSpan(ticks); // Format the constructor for display. String^ ctor = String::Format( "TimeSpan( {0} )", ticks ); // Pad the en

