summaryrefslogtreecommitdiff
path: root/emu/Nt/ie-os.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2008-01-31 18:52:35 +0000
committerCharles.Forsyth <devnull@localhost>2008-01-31 18:52:35 +0000
commit290d553f0c9238490f2e6a3a7af626621b52a769 (patch)
treea4129fdcd359dcd7c3bb90ccd1ab327cf11033e5 /emu/Nt/ie-os.c
parent8c260d1f7d357523acf050bc742531813c92c38e (diff)
20080131-1859
Diffstat (limited to 'emu/Nt/ie-os.c')
-rw-r--r--emu/Nt/ie-os.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/emu/Nt/ie-os.c b/emu/Nt/ie-os.c
index 20641a95..39898d0f 100644
--- a/emu/Nt/ie-os.c
+++ b/emu/Nt/ie-os.c
@@ -696,19 +696,6 @@ tm2sec(SYSTEMTIME *tm)
return secs;
}
-long
-time(long *tp)
-{
- SYSTEMTIME tm;
- long t;
-
- GetSystemTime(&tm);
- t = tm2sec(&tm);
- if(tp != nil)
- *tp = t;
- return t;
-}
-
/*
* Return the time since the epoch in microseconds
* The epoch is defined at 1 Jan 1970
@@ -724,6 +711,12 @@ osusectime(void)
return secs * 1000000 + tm.wMilliseconds * 1000;
}
+vlong
+osnsec(void)
+{
+ return osusectime()*1000; /* TO DO better */
+}
+
int
osmillisleep(ulong milsec)
{