diff options
author | Hugues Evrard <hevrard@users.noreply.github.com> | 2019-03-12 18:52:26 +0100 |
---|---|---|
committer | dan sinclair <dj2@everburning.com> | 2019-03-12 13:52:26 -0400 |
commit | 06e174dcbf63370ea802fe302e07250845bf74cf (patch) | |
tree | 616a0e0e8661419d2f9c6d19aa4550c8f8fd234f /include/amber/amber.h | |
parent | 532a274fb38a0b17acd3c2e913355c12e016c744 (diff) | |
download | amber-06e174dcbf63370ea802fe302e07250845bf74cf.tar.gz |
Implement --log-graphics-calls-time flag (#351)
Add the necessary Delegate methods to implement timing of graphics API
calls.
Diffstat (limited to 'include/amber/amber.h')
-rw-r--r-- | include/amber/amber.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/amber/amber.h b/include/amber/amber.h index 5a89b88..8e4b5a3 100644 --- a/include/amber/amber.h +++ b/include/amber/amber.h @@ -61,6 +61,10 @@ class Delegate { virtual void Log(const std::string& message) = 0; /// Tells whether to log the graphics API calls virtual bool LogGraphicsCalls() const = 0; + /// Tells whether to log the duration of graphics API calls + virtual bool LogGraphicsCallsTime() const = 0; + /// Returns the current timestamp in nanoseconds + virtual uint64_t GetTimestampNs() const = 0; }; struct Options { |