Logo
SharpKmyCore.h
1// SharpKmyCore.h
2
3#pragma once
4using namespace System;
5
6#using <System.Drawing.dll>
7
8namespace SharpKmyBase {
9
10 public ref class PerformanceMeter
11 {
12 static IntPtr begin(System::String^ name, System::Drawing::Color c);
13 static void end(IntPtr p);
14 public:
15 static void showCpu(bool flg);
16
17 ref class AutoPeriod
18 {
19 public:
20 AutoPeriod(System::String^ name) {
21 ptr = begin(name, System::Drawing::Color::Red);
22 }
24 end(ptr);
25 }
26 IntPtr ptr = IntPtr::Zero;
27 };
28 };
29
30 private ref class StringConv
31 {
32 public:
33 static std::string convert(System::String^ s);
34 //static bool convert(System::String^ s, char* buffer, size_t size);
35 static String^ New(std::string s);
36 };
37}
Definition: SharpKmyCore.h:18
AutoPeriod(System::String^ name)
Definition: SharpKmyCore.h:20
IntPtr ptr
Definition: SharpKmyCore.h:26
~AutoPeriod()
Definition: SharpKmyCore.h:23
Definition: SharpKmyCore.h:11
static void showCpu(bool flg)
Definition: SharpKmyCore.cpp:28
static void end(IntPtr p)
Definition: SharpKmyCore.cpp:21
static IntPtr begin(System::String^ name, System::Drawing::Color c)
Definition: SharpKmyCore.cpp:12
Definition: SharpKmyCore.h:31
static String New(std::string s)
Definition: SharpKmyCore.cpp:78
static std::string convert(System::String^ s)
Definition: SharpKmyCore.cpp:36
Definition: Asset.cpp:6