---
title: "sleep?"
type: "forum-thread"
url: "https://www.webforum.nu/amne/c-cpp/28103-sleep"
topic: "C/C++"
topic_url: "https://www.webforum.nu/amne/c-cpp"
author: "trasher"
published: "2001-10-11T13:59:00.000Z"
updated: "2001-10-13T17:18:00.000Z"
replies: 5
views: 449
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/c-cpp/28103-sleep"
---

# sleep?

## #1 — trasher, 2001-10-11T13:59Z

Kan jag använda sleep(); i c++?
Isåfall vilken header ligger den i?

Permalänk: https://www.webforum.nu/p/28103

## #2 — fnolis, 2001-10-11T14:38Z

SLEEP(3)            Linux Programmer's Manual            SLEEP(3)

NAME
       sleep - Sleep for the specified number of seconds

SYNOPSIS
       \#include \<unistd.h\>

       unsigned int sleep(unsigned int seconds);

DESCRIPTION
       sleep()  makes  the  current  process sleep until seconds seconds have elapsed or a signal arrives which is not
       ignored.

RETURN VALUE
       Zero if the requested time has elapsed, or the number of seconds left to sleep.

Permalänk: https://www.webforum.nu/p/401279

## #3 — trasher, 2001-10-11T15:42Z

Man tackar...

Permalänk: https://www.webforum.nu/p/401280

## #4 — Swey, 2001-10-11T22:15Z

Använder du Linux? Det ser inte ut som det.

I Windows finns det en funktion som heter Sleep (stor bokstav). Slå upp den i din manual.

Permalänk: https://www.webforum.nu/p/401281

## #5 — fnolis, 2001-10-13T14:55Z

Är inte Sleep() med stor bokstav i windows millisekunder?

Permalänk: https://www.webforum.nu/p/401282

## #6 — Swey, 2001-10-13T17:18Z

Ja, visst.
 <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred_7jxs.asp>

Permalänk: https://www.webforum.nu/p/401283

---

Tråden på webben: https://www.webforum.nu/amne/c-cpp/28103-sleep
