You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
36 lines
643 B
C++
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
|