All New

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Register

Login

All New Register Login

All gists

Recently created
Least recently created
Recently updated
Least recently updated

nichijou / 计算任务耗时

1 likes
0 forks
1 files
Last active 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;
Newer Older

Powered by Opengist ⋅ Load: 25ms⋅

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