Skip to content

Commit

Permalink
small namespace cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
berthubert committed Feb 18, 2024
1 parent 9afa607 commit e562a8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions navmerge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ bool g_inavdedup{false};
*/

auto xSecondsFromNow(double seconds)
static auto xSecondsFromNow(double seconds)
{
auto now = chrono::steady_clock::now();
now += std::chrono::milliseconds((unsigned int)(seconds*1000));
return now;
}

int msecLeft(const std::chrono::steady_clock::time_point& deadline)
static int msecLeft(const std::chrono::steady_clock::time_point& deadline)
{
auto now = chrono::steady_clock::now();
return std::chrono::duration_cast<std::chrono::milliseconds>(deadline - now).count();
Expand Down

0 comments on commit e562a8c

Please sign in to comment.