Counting seconds in real time

qlwik

Client
Регистрация
03.04.2013
Сообщения
208
Благодарностей
5
Баллы
18
I want to count in seconds how long take some steps in ZP, so I need seconds counter independent to steps in project manager, then I want to read how many seconds took some part of template, how can I do this?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 917
Благодарностей
1 200
Баллы
113
I want to count in seconds how long take some steps in ZP, so I need seconds counter independent to steps in project manager, then I want to read how many seconds took some part of template, how can I do this?
Hi, add this at the start of the template, or at the start of the step where you wanna start the counter.
C#:
DateTimeOffset.UtcNow.ToUnixTimeSeconds()
Then add the same at the end and then calculate the difference of those two values and you will have the time.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)