summaryrefslogtreecommitdiffstats
path: root/osdep/timer-darwin.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:26:13 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:34:35 +0300
commit0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch)
tree71cb9bd9ed121156d3382066c0722c73189afe04 /osdep/timer-darwin.c
parent6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff)
downloadmpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2
mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz
Remove trailing whitespace from most files
Diffstat (limited to 'osdep/timer-darwin.c')
-rw-r--r--osdep/timer-darwin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/osdep/timer-darwin.c b/osdep/timer-darwin.c
index a6e5a987d1..e0b4622c00 100644
--- a/osdep/timer-darwin.c
+++ b/osdep/timer-darwin.c
@@ -37,9 +37,9 @@ const char timer_name[] = "Darwin accurate";
float sleep_accurate(float time_frame)
{
uint64_t deadline = time_frame / timebase_ratio + mach_absolute_time();
-
+
mach_wait_until(deadline);
-
+
return (mach_absolute_time() - deadline) * timebase_ratio;
}
@@ -68,7 +68,7 @@ void InitTimer(void)
struct mach_timebase_info timebase;
mach_timebase_info(&timebase);
- timebase_ratio = (double)timebase.numer / (double)timebase.denom
+ timebase_ratio = (double)timebase.numer / (double)timebase.denom
* (double)1e-9;
}
@@ -78,7 +78,7 @@ void InitTimer(void)
int main(void) {
int i,j, r, c = 200;
long long t = 0;
-
+
InitTimer();
for (i = 0; i < c; i++) {