NAnt SDK Documentation - v0.92 |

# SleepTask Class

A task for sleeping a specified period of time, useful when a build or deployment process requires an interval between tasks.

For a list of all members of this type, see SleepTask Members.

System.Object
NAnt.Core.Element
NAnt.Core.Task
NAnt.Core.Tasks.SleepTask

[Visual Basic]
<TaskName(Name:="sleep")>
Public Class SleepTask
Inherits Task
[C#]
[TaskName(Name="sleep")]
public class SleepTask : Task

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Example

Sleep 1 hour, 2 minutes, 3 seconds and 4 milliseconds.

    <sleep hours="1" minutes="2" seconds="3" milliseconds="4" />

Sleep 123 milliseconds.

    <sleep milliseconds="123" />

#### Requirements

Namespace: NAnt.Core.Tasks

Assembly: NAnt.Core (in NAnt.Core.dll)

#### See Also

SleepTask Members | NAnt.Core.Tasks Namespace