| 192 | } |
| 193 | |
| 194 | command_result ktimer (color_ostream &out, vector <string> & parameters) |
| 195 | { |
| 196 | bool is_running = timering.exchange(false); |
| 197 | if(is_running) |
| 198 | { |
| 199 | return CR_OK; |
| 200 | } |
| 201 | uint64_t timestart = GetTimeMs64(); |
| 202 | { |
| 203 | uint64_t timeend = GetTimeMs64(); |
| 204 | timeLast = timeend; |
| 205 | timering = true; |
| 206 | out.print("Time to suspend = {} ms\n", int(timeend - timestart)); |
| 207 | } |
| 208 | is_enabled = true; |
| 209 | return CR_OK; |
| 210 | } |
| 211 | |
| 212 | struct Connected; |
| 213 | using shared = std::shared_ptr<Connected>; |
nothing calls this directly
no test coverage detected