Home | History | Annotate | Download | only in nacl_io
      1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
      2  * Use of this source code is governed by a BSD-style license that can be
      3  * found in the LICENSE file.
      4  */
      5 #ifndef LIBRARIES_NACL_IO_OSTIME_H_
      6 #define LIBRARIES_NACL_IO_OSTIME_H_
      7 
      8 #if defined(WIN32)
      9 
     10 #include <pthread.h>
     11 
     12 #ifndef CLOCK_REALTIME
     13 #define CLOCK_REALTIME (clockid_t) 1
     14 #endif
     15 
     16 int clock_gettime(clockid_t clock_id, struct timespec *tp);
     17 int clock_settime(clockid_t clock_id, const struct timespec *tp);
     18 
     19 #else
     20 
     21 #include <time.h>
     22 
     23 #endif
     24 
     25 #endif  // LIBRARIES_NACL_IO_OSUNISTD_H_
     26 
     27