Re-implementation of Izanami game engine
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #ifndef IZ_TIMER_H
- #define IZ_TIMER_H
-
- //#define IZ_LOG_DATE_FRIENDLY
- #define IZ_LOG_DATE_ELAPSED_FRIENDLY
-
- #include <stdio.h>
- #include <time.h>
-
- /**
- * The start timestamp.
- * @sa IZ_TimerStart
- */
- static time_t IZ_TIMER_START_TIMESTAMP = 0;
-
- /**
- * Gets the start timestamp.
- * @sa IZ_TIMER_START_TIMESTAMP
- */
- void IZ_TimerStart();
-
- /**
- * Gets the number of microseconds since the application timer has been started.
- * @return The number of microseconds.
- * @sa IZ_TimerElapsed()
- */
- unsigned int IZ_TimerElapsedRaw();
-
- /**
- * Gets the formatted elapsed time since the application timer has been started.
- * @return The formatted elapsed time.
- * @sa IZ_TimerElapsedRaw()
- */
- char* IZ_TimerElapsed();
-
- /**
- * Gets the formatted time in the current instant.
- * @return The formatted time in the current instant.
- */
- char* IZ_TimerNow();
-
- #endif
|