// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
#include <iostream>
#include <chrono>

using namespace std;
using namespace std::chrono;

#include "MeyersSingleton11.h"

MeyersSingleton11::MeyersSingleton11()
{
    cout << "  Constructed\t: " << duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count() << endl;
}

MeyersSingleton11& MeyersSingleton11::Instance()
{
    static MeyersSingleton11 instance;
    cout << "  Retrieved\t: " << duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count() << endl;
    return instance;
}

void MeyersSingleton11::Something()
{
    cout << "  Called\t: " << duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count() << endl;
}

