Skip to content

Commit

Permalink
Merge pull request #2 from cmr/readable_ms
Browse files Browse the repository at this point in the history
Use readable #define's for MS_*
  • Loading branch information
tj committed Dec 3, 2012
2 parents 5df2bf7 + f25384a commit cf731d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@

// milliseconds

#define MS_SEC 1000
#define MS_MIN 60000
#define MS_HOUR 3600000
#define MS_DAY 86400000
#define MS_WEEK 604800000
#define MS_YEAR 31557600000
#define MS_SEC (long long)1000
#define MS_MIN 60 * MS_SEC
#define MS_HOUR 60 * MS_MIN
#define MS_DAY 24 * MS_HOUR
#define MS_WEEK 7 * MS_DAY
#define MS_YEAR 52 * MS_WEEK

/*
* Convert the given `str` representation to microseconds,
Expand Down Expand Up @@ -237,4 +237,4 @@ main(){
return 0;
}

#endif
#endif

0 comments on commit cf731d9

Please sign in to comment.