- Main Page
- Namespaces
- Classes
- Files
- Related Pages

# /Users/fpy/titan-1-5-MBARI/Mers/Utils/Lang/Sleep.cpp

    00001
    00002 //
    00003 // Copyright (c) 2005           Model-based Embedded and Robotic Systems Group
    00004 // All Rights Reserved          Massachusetts Institute of Technology
    00005 //
    00006 // This software is provided as is. Model-based Embedded and Robotic Systems
    00007 // (MERS) group does not assume any responsibility.
    00008 //
    00010
    00011 #include "Sleep.h"
    00012
    00014
    00015 #ifdef _MSC_VER // VC++
    00016
    00017 #include <windows.h>
    00018
    00019 int Mers::Utils::Lang::sleep( int len ) {
    00020         Sleep( len * 1000 );
    00021         return 0;
    00022 }
    00023
    00024 #else // GCC
    00025
    00026 #include <unistd.h>
    00027
    00028 int Mers::Utils::Lang::sleep( int len ) {
    00029         return ::sleep( len );
    00030 }
    00031
    00032 #endif