summaryrefslogtreecommitdiff
path: root/src/common/timer.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-05-30 04:42:58 +0200
committerHaruna <haru@dotalux.com>2014-05-30 04:42:58 +0200
commit3def3af50a09d934f7a288e930aa3376b8c2d02f (patch)
tree1d683555f1567d429f0b21cad578bfb1629f22b0 /src/common/timer.c
parentc3976d24500abc6084a4d96d60ae84c65302e3ae (diff)
parent0a4975ed611db7d1bcfe501008085e420e743128 (diff)
downloadhercules-3def3af50a09d934f7a288e930aa3376b8c2d02f.tar.gz
hercules-3def3af50a09d934f7a288e930aa3376b8c2d02f.tar.bz2
hercules-3def3af50a09d934f7a288e930aa3376b8c2d02f.tar.xz
hercules-3def3af50a09d934f7a288e930aa3376b8c2d02f.zip
Merge pull request #282 from MrKeiKun/fix_typo
Fixed some typo
Diffstat (limited to 'src/common/timer.c')
-rw-r--r--src/common/timer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/timer.c b/src/common/timer.c
index 5240ec202..ab0471d51 100644
--- a/src/common/timer.c
+++ b/src/common/timer.c
@@ -170,14 +170,14 @@ static int64 sys_tick(void) {
}
if (pGetTickCount64)
return (int64)pGetTickCount64();
- // 32-bit fallback. Note: This will wrap around every ~49 days since system startup!!!
+ // 32-bit fall back. Note: This will wrap around every ~49 days since system startup!!!
return (int64)GetTickCount();
#elif defined(ENABLE_RDTSC)
// RDTSC: Returns the number of CPU cycles since reset. Unreliable if
// the CPU frequency is variable.
return (int64)((_rdtsc() - RDTSC_BEGINTICK) / RDTSC_CLOCK);
#elif defined(HAVE_MONOTONIC_CLOCK)
- // Monotinic clock: Implementation-defined.
+ // Monotonic clock: Implementation-defined.
// Clock that cannot be set and represents monotonic time since some
// unspecified starting point. This clock is not affected by
// discontinuous jumps in the system time (e.g., if the system
@@ -188,7 +188,7 @@ static int64 sys_tick(void) {
// int64 cast to avoid overflows on platforms where time_t is 32 bit
return (int64)tval.tv_sec * 1000 + tval.tv_nsec / 1000000;
#else
- // Fallback, regular clock: Number of milliseconds since epoch.
+ // Fall back, regular clock: Number of milliseconds since epoch.
// The time returned by gettimeofday() is affected by discontinuous
// jumps in the system time (e.g., if the system administrator
// manually changes the system time). If you need a monotonically