C++ std::chrono::seconds()函数(持续时间(秒))

Posted Dontla

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C++ std::chrono::seconds()函数(持续时间(秒))相关的知识,希望对你有一定的参考价值。

文章目录

cppman std::chrono::seconds

std::chrono::seconds(3)                                               C++ Programmer's Manual                                               std::chrono::seconds(3)



NAME
       std::chrono::seconds - Duration in seconds	//持续时间(秒)

TYPE
       class

SYNOPSIS
       #include <chrono>

       typedef duration < /*see rep below*/ > seconds;

DESCRIPTION
       Instantiation of duration to represent seconds.
       It is a typedef of an instantiation of duration with the following member types:
       //持续时间的实例化以表示秒。
        //它是具有以下成员类型的持续时间实例化的 typedef:

MEMBER TYPES
       +------------+----------------------------------------------------------------------------------------------------------------+-----------------------------+
       |member type |                                                   definition                                                   |         description         |
       +------------+----------------------------------------------------------------------------------------------------------------+-----------------------------+
       |rep         | A signed integral type of at least 35 bits                                                                     | Representation type         |
       +------------+----------------------------------------------------------------------------------------------------------------+-----------------------------+
       |period      | ratio<1,1>                                                                                                     | A ratio of 1:1 with seconds |
       +------------+----------------------------------------------------------------------------------------------------------------+-----------------------------+


SEE ALSO
       duration(3)
              Duration  (class template)

       hours(3)
              Duration in hours  (class)

       minutes(3)
              Duration in minutes  (class)

       milliseconds(3)
              Duration in milliseconds  (class)

       microseconds(3)
              Duration in microseconds  (class)

       nanoseconds(3)
              Duration in nanoseconds  (class)

REFERENCE
       cplusplus.com, 2000-2015 - All rights reserved.



cplusplus.com                                                                2022-05-13                                                     std::chrono::seconds(3)
(END)

以上是关于C++ std::chrono::seconds()函数(持续时间(秒))的主要内容,如果未能解决你的问题,请参考以下文章

如何终止或停止 C++ 中的分离线程?

std::literals::.. 作为内联命名空间有啥好处?

线程 packaged_task future

stdthreaddetach

std::thread 从一个函数开始而不等待线程完成[重复]

std::this_thread::sleep_for - 上下文切换到这个线程吗?