namespace CMSGame
{
static class TimeHelper
{
///
/// 获取自引擎启动后经过的时间。
///
public static double GetTicks()
{
return Time.GetTicksMsec() / 1000.0;
}
///
/// 将时间(单位为秒)格式化为字符串“时:分:秒.毫秒”。
///
public static string FormatTime(double time)
{
return TimeSpan.FromSeconds(time).ToString("c");
}
}
}