os_time.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_OS_TIME_H_INCLUDED
26 #define ICL_CORE_OS_TIME_H_INCLUDED
27 
28 #include "icl_core/os_ns.h"
29 
30 #if defined _SYSTEM_POSIX_
31 # include "icl_core/os_posix_time.h"
32 #elif defined _SYSTEM_WIN32_
33 # include "icl_core/os_win32_time.h"
34 #else
35 # error "No os_time implementation defined for this platform."
36 #endif
37 
38 namespace icl_core {
39 namespace os {
40 
41 inline void gettimeofday(struct timespec *time)
42 {
44 }
45 
46 inline int nanosleep(const struct timespec *rqtp, struct timespec *rmtp = 0)
47 {
48  return ICL_CORE_OS_IMPL_NS::nanosleep(rqtp, rmtp);
49 }
50 
51 inline unsigned int sleep(unsigned int seconds)
52 {
53  return ICL_CORE_OS_IMPL_NS::sleep(seconds);
54 }
55 
56 inline int usleep(unsigned long useconds)
57 {
58  return ICL_CORE_OS_IMPL_NS::usleep(useconds);
59 }
60 
61 }
62 }
63 
64 #endif
Posix implementation of the global functions for time manipulation,.
Win32 implementation of the global functions for time manipulation,.
int usleep(unsigned long useconds)
Definition: os_time.h:56
unsigned int sleep(unsigned int seconds)
Definition: os_time.h:51
Definition of the implementation namespace for global functions.
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp=0)
Definition: os_time.h:46
void gettimeofday(struct timespec *time)
Definition: os_time.h:41


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58