mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated tonlib, new fullnode queries
This commit is contained in:
parent
87ccb27b70
commit
a1e352d894
40 changed files with 1188 additions and 175 deletions
|
@ -24,14 +24,22 @@ namespace td {
|
|||
|
||||
class Timer {
|
||||
public:
|
||||
Timer();
|
||||
Timer() : Timer(false) {
|
||||
}
|
||||
explicit Timer(bool is_paused);
|
||||
Timer(const Timer &other) = default;
|
||||
Timer &operator=(const Timer &other) = default;
|
||||
|
||||
double elapsed() const;
|
||||
void pause();
|
||||
void resume();
|
||||
|
||||
private:
|
||||
friend StringBuilder &operator<<(StringBuilder &string_builder, const Timer &timer);
|
||||
|
||||
double elapsed_{0};
|
||||
double start_time_;
|
||||
bool is_paused_{false};
|
||||
};
|
||||
|
||||
class PerfWarningTimer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue