~alan-griffiths/miral/fix-1645284

« back to all changes in this revision

Viewing changes to miral-qt/src/common/timestamp.cpp

  • Committer: Alan Griffiths
  • Date: 2016-11-07 17:59:19 UTC
  • mfrom: (436.1.1 miral2)
  • Revision ID: alan@octopull.co.uk-20161107175919-stbb64i7j1htgog2
[miral-qt] delete all as qtmir work on MirAL has shifted to lp:~unity-team/qtmir/miral-qt-integration and this is a needless distration

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#include <chrono>
3
 
#include "timestamp_impl.h"
4
 
 
5
 
std::chrono::nanoseconds appStartTime(0);
6
 
 
7
 
void resetStartTime(std::chrono::nanoseconds timestamp)
8
 
{
9
 
        appStartTime = timestamp;
10
 
}
11
 
 
12
 
std::chrono::nanoseconds getStartTime(std::chrono::nanoseconds timestamp, bool allowReset)
13
 
{
14
 
        if (allowReset && appStartTime.count() == 0) {
15
 
                resetStartTime(timestamp);
16
 
        }
17
 
        return appStartTime;
18
 
}