Timestamp.h 457 B

1234567891011121314151617181920212223242526272829
  1. #ifndef ANKI_CORE_TIMESTAMP_H
  2. #define ANKI_CORE_TIMESTAMP_H
  3. #include "anki/util/StdTypes.h"
  4. namespace anki {
  5. /// Give the current timestamp. It actually gives the current frame. Used to
  6. /// indicate updates. It is actually returning the current frame
  7. class Timestamp
  8. {
  9. public:
  10. static void increaseTimestamp()
  11. {
  12. ++timestamp;
  13. }
  14. static U32 getTimestamp()
  15. {
  16. return timestamp;
  17. }
  18. private:
  19. static U32 timestamp;
  20. };
  21. } // end namespace anki
  22. #endif