std :: time_t 正如引用所说的,最终是算术类型(即 int , long , nosigned long long long /代码>等)。 time_point 是一种模板结构,允许在算术上进行许多不同的操作,例如使用 time_point_cast_cast )将转换为不同的时间单元(即 milliseconds ) 。
std::time_t, as the reference says, ends up being an arithmetic type (i.e. int, long, unsigned long long, etc.). time_point is a templated structure that allows many different operations on top of arithmetic, like converting into a different time unit (i.e. milliseconds, using time_point_cast).
发布评论
评论(1)
std :: time_t
正如引用所说的,最终是算术类型(即int
,long
,nosigned long long long /代码>等)。
time_point
是一种模板结构,允许在算术上进行许多不同的操作,例如使用time_point_cast_cast
)将转换为不同的时间单元(即milliseconds
) 。std::time_t
, as the reference says, ends up being an arithmetic type (i.e.int
,long
,unsigned long long
, etc.).time_point
is a templated structure that allows many different operations on top of arithmetic, like converting into a different time unit (i.e.milliseconds
, usingtime_point_cast
).