diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-27 19:51:29 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-27 19:51:29 +0300 |
| commit | 953fc4deb9d94a63afe07d66ccf78ff42f54c3bb (patch) | |
| tree | 9bc9eb73130a7f8bdc82f8f64b81476f78123d52 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Helpers | |
| parent | 69fb24f927bd0954a2765c71b09545df3fbba73c (diff) | |
| download | Tango-953fc4deb9d94a63afe07d66ccf78ff42f54c3bb.tar.gz Tango-953fc4deb9d94a63afe07d66ccf78ff42f54c3bb.zip | |
Working on logging module!
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Helpers')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Helpers/TimelineHelper.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Helpers/TimelineHelper.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Helpers/TimelineHelper.cs new file mode 100644 index 000000000..6cfe51ba4 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Helpers/TimelineHelper.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.MachineStudio.Logging.Helpers +{ + public static class TimelineHelper + { + public static double ConvertTimeToPixels(TimeSpan time, double scaleFactor) + { + return ((double)(0.05f * ((double)(time.TotalSeconds) * 20))) * scaleFactor; + } + } +} |
