全部 新建

user:thomas 由使用者建立的 Gists

title:mygist Gists 的標題

description:sync gists with given description

filename:myfile.txt Gists 的檔案名稱

extension:yml Gists 的副檔名

language:go Gists 的程式語言

topic:homelab gists with given topic

all:systemctl search all fields

註冊

登錄

全部 新建 註冊 登錄

所有 Gists

倒序排序 創建
順序排序 創建
倒序排序 更新
順序排序 更新

nichijou / 计算任务耗时

1 喜歡
0 分支
1 檔案
最後活躍 2 hours ago
计算任务耗时, 单例类实现
1
2 #ifndef QTCONTROL_SRC_UTILS_STOPWATCH_H_
3 #define QTCONTROL_SRC_UTILS_STOPWATCH_H_
4 #include "chrono"
5
6 class StopWatch {
7 public:
8 static StopWatch& GetInstance() {
9 static StopWatch instance;
10 return instance;
上一頁 下一頁

由 Opengist 提供支持 ⋅ Load: 20ms⋅

繁體中文
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文