[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/chrono/system_clock [Back]  [Original]

std::chrono::system_clock cppreference.com
cppreference.com
Espaces de noms
Variantes

std::chrono::system_clock

De cppreference.com
<tbody> </tbody>
Dclar dans l'en-tte <chrono>
class system_clock;
(depuis C++11)

La classe std::chrono::system_clock reprsente l'horloge systme temps rel, en anglais wall clock par analogie une horloge murale.

Elle n'est pas forcment monotone : sur la plupart des systmes, l'horloge systme peut tre modifie tout moment, par exemple pour s'adapter au fuseau horaire.

C'est la seule horloge C++ dont un point dans le temps peut tre directement associ un temps de type C (std::time_t).

std::chrono::system_clock rpond aux exigences du concept TrivialClock.

Types de membres

Type du membre Dfinition
rep type arithmtique sign permettant de reprsenter le nombre de mesures dans une dure de l'horloge
period un type std::ratio reprsentant la dure d'une mesure de l'horloge, en secondes
duration std::chrono::duration<rep, period>, le type reprsentant une dure, capable de reprsenter des dures ngatives
time_point le type de point dans le temps de cette horloge, std::chrono::time_point<system_clock>

Constantes membres

bool is_steady
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
true si l'horloge est monotone: le temps entre deux mesures est constant, c'est dire que now() retourne des valeurs qui augmentent de manire contante mme en cas d'ajustement externe de l'horloge
(constante membre statique publique)

Fonctions membres

[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
retourne un std::chrono::time_point reprsentant le point courant dans le temps
Original:
returns a std::chrono::time_point representing the current point in time
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique statique) [edit]
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
convertit un point dans le temps systme de l'horloge std::time_t
Original:
converts a system clock time point to std::time_t
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique statique) [edit]
[
statique
Original:
static
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
]
convertit std::time_t un point dans le temps d'horloge systme
Original:
converts std::time_t to a system clock time point
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction membre publique statique) [edit]

Voir aussi

horloge monotone dont le temps n'est jamais ajust
(classe)
l'horloge avec la plus petit priode disponible
(classe)

Web Proxy Viewer  |  New URL  |  Original Page