Select to view content in your preferred language

ArcGIS Pro Field Calculator time.sleep

478
0
10-22-2021 02:19 AM
Labels (3)
SUBHADIPDATTA
New Contributor

I want to add numbering in a column but with an interval of time to avoid the last edited date. 

from time import sleep
rec=0
def sqn():
global rec
pStart = 1
pInterval = 1
sleep(15)
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
return rec

I tried with a time sleep of 15 sec but it is not working. It is not reflecting the 15-sec interval on the last edited date column.

SUBHADIPDATTA_0-1634894227161.png

Any code to use python field calculator with an interval of time?

0 Kudos
0 Replies