Files
fredric echols 0dbf56cf07 Re-modularized UGSCore (UGSShared) so UGSCmd can be added as its own executable.
#jira none
#rb none
#preflight none

[CL 21361062 by fredric echols in ue5-main branch]
2022-08-12 15:13:26 -04:00

36 lines
643 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Misc/Timespan.h"
namespace UGSCore
{
class FTelemetryStopwatch
{
public:
FTelemetryStopwatch(const FString& InAction, const FString& InProject);
~FTelemetryStopwatch();
FTimespan Stop(const FString& InResult);
FTimespan GetElapsed() const;
private:
const FString Action;
const FString Project;
const FDateTime StartTime;
FString Result;
FDateTime EndTime;
};
class FTelemetryWriter
{
public:
FTelemetryWriter(const FString& InSqlConnectionString, const FString& InLogFileName);
~FTelemetryWriter();
};
} // namespace UGSCore