16 lines
312 B
C#
16 lines
312 B
C#
using System;
|
|
|
|
namespace SemiColinGames {
|
|
class Clock {
|
|
private static TimeSpan modelTime = new TimeSpan();
|
|
|
|
public static void AddModelTime(double seconds) {
|
|
modelTime += TimeSpan.FromSeconds(seconds);
|
|
}
|
|
|
|
public static TimeSpan ModelTime {
|
|
get { return modelTime; }
|
|
}
|
|
}
|
|
}
|