Counter Strike : Global Offensive Source Code
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.

35 lines
1.3 KiB

  1. //========= Copyright �, Valve LLC, All rights reserved. ============
  2. //
  3. // Purpose: declares a variety of constants
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef T0CONSTANTS_H
  8. #define T0CONSTANTS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. //-----------------------------------------------------------------------------
  13. // numeric constants to avoid typos with wrong number of zeros
  14. //-----------------------------------------------------------------------------
  15. const int64 k_nMillion = 1000000;
  16. const int64 k_nThousand = 1000;
  17. const int64 k_nKiloByte = 1024;
  18. const int64 k_nMegabyte = k_nKiloByte * k_nKiloByte;
  19. const int64 k_nGigabyte = k_nMegabyte * k_nKiloByte;
  20. //-----------------------------------------------------------------------------
  21. // Timing constants
  22. //-----------------------------------------------------------------------------
  23. const unsigned int k_nSecondsPerHour = 60*60;
  24. const unsigned int k_nSecondsPerDay = k_nSecondsPerHour * 24;
  25. const int k_cSecondsPerMinute = 60;
  26. const int k_cSecondsPerHour = k_cSecondsPerMinute * 60;
  27. const int k_cSecondsPerDay = k_cSecondsPerHour * 24;
  28. const int k_cSecondsPerWeek = k_cSecondsPerDay * 7;
  29. const int k_cSecondsPerYear = k_cSecondsPerDay * 365;
  30. #endif // T0CONSTANTS_H