// Copyright 2016-2026 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#ifndef PAUSE_H
#define PAUSE_H

#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif

#ifdef _WIN32

static void pause_short(void)
{
  Sleep(1);
}

static void pause_long(void)
{
  Sleep(1000);
}

#else

static void pause_short(void)
{
  usleep(100000);
}

static void pause_long(void)
{
  sleep(1);
}

#endif // WIN32

#endif // PAUSE_H
