I have code that needs to call sleep for both windows and linux.

In an attempt to avoid placing ifdefs everywhere there is a Sleep I did the following

```
typedef Sleep sleep

```

The issue with this is windows takes Sleep in microseconds and linux takes sleep in seconds. Is there a way to do something like this pseudo-code.

```
typedef Sleep(x) sleep(x/1000)

```