Skip to content

Commit

Permalink
w4
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Apr 2, 2024
1 parent fd3cfd6 commit 3caa622
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions dart/common/Stopwatch.hpp
Expand Up @@ -119,19 +119,19 @@ class Stopwatch final
DART_API void tic();

/// Returns the elapsed time in seconds since the last tic() call.
DART_API double toc(bool print = false);
DART_API [[nodiscard]] double toc(bool print = false);

/// Returns the elapsed time in seconds since the last tic() call.
DART_API double tocS(bool print = false);
DART_API [[nodiscard]] double tocS(bool print = false);

/// Returns the elapsed time in milliseconds since the last tic() call.
DART_API double tocMS(bool print = false);
DART_API [[nodiscard]] double tocMS(bool print = false);

/// Returns the elapsed time in microseconds since the last tic() call.
DART_API double tocUS(bool print = false);
DART_API [[nodiscard]] double tocUS(bool print = false);

/// Returns the elapsed time in nanoseconds since the last tic() call.
DART_API double tocNS(bool print = false);
DART_API [[nodiscard]] double tocNS(bool print = false);

using StopwatchS = Stopwatch<std::chrono::seconds>;
using StopwatchMS = Stopwatch<std::chrono::milliseconds>;
Expand Down
4 changes: 3 additions & 1 deletion dart/common/Timer.hpp
Expand Up @@ -41,6 +41,8 @@
#include <sys/time.h>
#endif

#include <dart/Export.hpp>

#include <dart/common/Deprecated.hpp>

namespace dart {
Expand All @@ -52,7 +54,7 @@ namespace common {
/// For measure the time, gettimeofday() api is used
///
/// \deprecated Use Stopwatch instead.
class DART_DEPRECATED(6.13) Timer
class DART_API DART_DEPRECATED(6.13) Timer
{
public:
/// \brief Default constructor
Expand Down
4 changes: 2 additions & 2 deletions dart/common/Uri.hpp
Expand Up @@ -40,7 +40,7 @@
namespace dart {
namespace common {

class UriComponent final
class DART_API UriComponent final
{
public:
using value_type = std::string;
Expand Down Expand Up @@ -85,7 +85,7 @@ class UriComponent final
/// ResourceRetreiver classes rewrite URIs to other types of URIs (e.g, resolve
/// 'package://' URIs to 'file://' URIs), which is easier to implement if you
/// have direct access to the URI components.
struct Uri final
struct DART_API Uri final
{
/// Scheme, e.g. 'http', 'file', 'package'
UriComponent mScheme;
Expand Down

0 comments on commit 3caa622

Please sign in to comment.