cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Use actual time of the ctrlX Core for time measurement / programm a timer

yannic
Established Member

Use actual time of the ctrlX Core for time measurement / programm a timer

Hello together,

how can I use the actual time of the ctrlX Core to programm a timer in Python? Can i find it in the the datalayer? Maybe there is an other possibility to measure time?

Greetings

Yannic

1 REPLY 1
CodeShepherd
Community Moderator

Re: Use actual time of the ctrlX Core for time measurement / programm a timer

simply use the time library to ready the actual system time:

import time
test = time.time()

 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--image