0cc0178ab5
avoid unnecessary copies by using std::move
2018-07-24 15:47:21 +10:00
3748b77500
time/delta_time: return nanoseconds objects rather than floats
2018-04-05 18:48:23 +10:00
34788756d2
build: don't use './' as an include prefix
...
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00
9a798446b5
build: remove unnecessary includes
...
discovered with include-what-you-use
2016-10-12 15:08:22 +11:00
678e12216b
time: use std::chrono for nanoseconds query
2016-04-05 11:02:54 +10:00
424e6e8701
cast: move types/casts to cast
2015-11-17 16:19:27 +11:00
5d6586636e
time: split off platform units
2015-07-23 14:13:09 +10:00
7ae57730f0
whitespace
2015-04-13 18:06:08 +10:00
2658b41ea1
relicence under Apache-2.0
2015-04-13 18:05:28 +10:00
52f53caee5
debug: drop support for CHECK_HARD
...
HARD vs SOFT assertions were never very well defined or supported.
Currently they just imply a level of functionality that isn't present;
it's better to remove them instead of expending the effort at this
point.
2015-01-28 14:49:34 +11:00
31b3e5ab68
time: use monotonic_clock
...
monotonic is unaffected by system time changes
2015-01-19 19:11:57 +11:00
803ec2cacc
time: use floats for seconds
2015-01-19 19:11:41 +11:00
bce3abac40
build: remove implicit type casting warnings
2014-07-02 15:47:53 +10:00
d5df6116d5
build: remove useless cast warnings
2014-07-02 15:47:53 +10:00
5bcc35612c
Add period query class
2013-09-20 17:33:08 +10:00
03eab1354a
Add simple polled rate limiter
2013-08-08 12:00:29 +10:00
3615bb2fa1
Use constants for millseconds/seconds
2013-08-08 11:59:45 +10:00
9ff59f8130
Add a clock which gives deltas when polled
2013-08-05 16:40:43 +10:00
7107968cdb
Add a periodic statistics printer to time
2012-08-07 18:35:38 +10:00
f9cc4926f2
Categorise functionality from types.hpp
2012-05-25 15:19:07 +10:00
4f5d75a1df
Make all check macros uppercase
2012-05-11 12:34:21 +10:00
71a1592413
Cast to avoid signedness warnings in sleep
2012-05-08 16:40:10 +10:00
3e014f366e
Add win32 implementation of nanosleep
2012-05-08 15:02:25 +10:00
4abb279f04
Add nanoseconds sleep function
2012-05-01 12:14:38 +10:00
77942e008d
Change my email to an active domain
2012-04-23 13:10:50 +10:00
4ddcb4c482
Add nanoseconds implementation for Win32
2011-09-25 14:24:53 +10:00
575f87747b
Use explicit casting to avoid signedness warnings
2011-09-16 22:55:56 +10:00
14597ebba2
Add ULL suffix to nanoseconds constant..
2011-09-07 21:51:42 +10:00
91daeb332f
Add simple time functions
2011-08-29 15:28:11 +10:00