Skip to content

Commit

Permalink
Even better US_*
Browse files Browse the repository at this point in the history
  • Loading branch information
emberian committed Dec 2, 2012
1 parent 1027af7 commit 57f074a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ms.c
Expand Up @@ -12,12 +12,13 @@


// microseconds // microseconds


#define US_SEC 1000000 #define US_MSEC 1000
#define US_SEC 1000 * US_MSEC
#define US_MIN 60 * US_SEC #define US_MIN 60 * US_SEC
#define US_HOUR 60 * US_MIN #define US_HOUR 60 * (long long)US_MIN
#define US_DAY 24 * US_HOUR #define US_DAY 24 * (long long)US_HOUR
#define US_WEEK 7 * US_DAY #define US_WEEK 7 * (long long)US_DAY
#define US_YEAR 52 * US_WEEK #define US_YEAR 52 * (long long)US_WEEK


// milliseconds // milliseconds


Expand Down Expand Up @@ -237,4 +238,4 @@ main(){
return 0; return 0;
} }


#endif #endif

0 comments on commit 57f074a

Please sign in to comment.