x
Yes
No
Do you want to visit DriveHQ English website?
Inicio
Características
Precios
Prueba gratuita
Software cliente
Acerca de nosotros
Servidor de archivos
|
Solución de copias de seguridad
|
Servidor FTP
|
Servidor de correo electrónico
|
Alojamiento web
|
Software cliente
Servidor de archivos
Solución de copia de seguridad
Servidor FTP
Servidor de correo electrónico
Alojamiento web
Software cliente
thread_time.hpp - Hosted on DriveHQ Cloud IT Platform
Arriba
Subir
Descargar
Compartir
Publicar
Nueva carpeta
Nuevo archivo
Copiar
Cortar
Eliminar
Pegar
Clasificación
Actualizar
Ruta de la carpeta: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\thread\thread_time.hpp
Girar
Efecto
Propiedad
Historial
#ifndef BOOST_THREAD_TIME_HPP #define BOOST_THREAD_TIME_HPP // (C) Copyright 2007 Anthony Williams // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include
#include
namespace boost { typedef boost::posix_time::ptime system_time; inline system_time get_system_time() { return boost::date_time::microsec_clock
::universal_time(); } namespace detail { inline system_time get_system_time_sentinel() { return system_time(boost::posix_time::pos_infin); } inline unsigned long get_milliseconds_until(system_time const& target_time) { if(target_time.is_pos_infinity()) { return ~(unsigned long)0; } system_time const now=get_system_time(); if(target_time<=now) { return 0; } return static_cast
((target_time-now).total_milliseconds()+1); } } } #endif
thread_time.hpp
Dirección de la página
Dirección del archivo
Anterior
11/13
Siguiente
Descargar
( 1 KB )
Comments
Total ratings:
0
Average rating:
No clasificado
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.