OHyMoS.NET Class Library

OhTime クラス

秒単位の時間を表すクラスです。

この型のすべてのメンバの一覧については、 OhTime メンバを参照してください。

System.Object
   OhymosNet.OhTime

public class OhTime : ICloneable, IOhTimeImmutable

解説

OhTime オブジェクトは、時間を秒単位で表わします。OhTime は、 時間を表わすために secfrac の2つのフィール ドを使用します。sec は、整数部分、frac は、小数部分を 表わします。frac は、-0.5 以上、0.5 未満とします。

例えば、10.7 秒は、sec = 11, frac = -0.3 と表わ されます。10.3 秒は、sec = 10, frac = 0.3 と表 わされます。


An OhTime object stands for an amount of time in seconds. An OhTime object has two field variables: sec and frac. sec is the integer part of the time, and frac is the fractional part of the time. frac is greater than or equal to -0.5 and less than 0.5. In other words, sec is the closest long to sec + frac.

For example, 10.7 seconds are stood for by sec = 11 and frac = -0.3 and 10.4 seconds are stood for by sec = 10 and frac = 0.4

必要条件

名前空間: OhymosNet

アセンブリ: OhymosNet (OhymosNet.dll 内)

参照

OhTime メンバ | OhymosNet 名前空間