Webster Sheets
bd338bae29
Don't use SDL typedefs in DateTime.h
2020-05-15 16:39:45 -04:00
Webster Sheets
5cdaefad6a
Run clang-format over the entire code base.
...
Fix hidden header-inclusion-order dependency errors.
Update .clang-format for v7.0.1.
2019-01-05 17:09:05 -05:00
Lars W. (lwho)
9f25bef476
Persist explored state of a system.
2014-09-29 20:10:05 +02:00
John Bartholomew
dabd5e7319
datetime: remove commented out Sint64*TimeUnit operator and update docs
2014-09-12 17:06:48 +01:00
John Bartholomew
99bc818e38
datetime: use 'll' suffix on TimeUnit constants to make GCC 4.7 happy
...
Otherwise GCC 4.7 never promotes the values to 64-bit and reports errors
due to overflow.
2014-09-11 20:41:26 +01:00
John Bartholomew
9b0ea5c62f
datetime: remove some unused TimeDelta methods
2014-09-07 23:58:04 +01:00
John Bartholomew
b5e4410f39
datetime: add += and -= operators to Time::DateTime
2014-09-07 23:58:04 +01:00
John Bartholomew
7f04249723
datetime: add comparison operators to the DateTime class
2014-09-07 23:58:04 +01:00
John Bartholomew
6c2d4bcaa5
define basic time delta and time point classes
...
64-bit signed time values, in microseconds.
TimeDelta represents a duration.
DateTime represents a point in time, and understands the Gregorian
calendar (it can convert between a timestamp format and year/month/day
hour/minute/second/microsecond)
2014-09-07 23:58:03 +01:00