summaryrefslogtreecommitdiffstats
path: root/osdep/timer-win2.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-28 12:09:31 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-28 12:18:45 +0300
commiteaf7857b7f7ae6b05ce9d129157e0ff33ed2081b (patch)
tree17005cd968a137ae8902e408e454cfd32fc033ec /osdep/timer-win2.c
parentc693b77e935e7e34e21bafed2df0ff891d0e25ac (diff)
downloadmpv-eaf7857b7f7ae6b05ce9d129157e0ff33ed2081b.tar.bz2
mpv-eaf7857b7f7ae6b05ce9d129157e0ff33ed2081b.tar.xz
timers: Remove GetRelativeTime()
Move the code calculating time delta since last query out of the platform-specific drivers and into mplayer.c. The platform-specific drivers now return absolute values only. The way the code in timer-darwin.c uses doubles in wrapping arithmetic looks questionable and this change might make problems in it more visible.
Diffstat (limited to 'osdep/timer-win2.c')
-rw-r--r--osdep/timer-win2.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/osdep/timer-win2.c b/osdep/timer-win2.c
index ef52a665d3..43c4b07fa9 100644
--- a/osdep/timer-win2.c
+++ b/osdep/timer-win2.c
@@ -25,16 +25,5 @@ int usec_sleep(int usec_delay){
return 0;
}
-static DWORD RelativeTime = 0;
-
-float GetRelativeTime(){
- DWORD t, r;
- t = GetTimer();
- r = t - RelativeTime;
- RelativeTime = t;
- return (float) r *0.000001F;
-}
-
void InitTimer(){
- GetRelativeTime();
}