Returns the current calendar time Assume that the machine booted at the Unix epoch
| 21 | // Returns the current calendar time |
| 22 | // Assume that the machine booted at the Unix epoch |
| 23 | time_t time(time_t* t) { |
| 24 | time_t current_time = static_cast<time_t>(timesinceboot()); |
| 25 | if (t != nullptr) { |
| 26 | *t = current_time; |
| 27 | } |
| 28 | return current_time; |
| 29 | } |
| 30 | |
| 31 | } // namespace std |
| 32 |
nothing calls this directly
no outgoing calls
no test coverage detected