<s> import time <EOL> from v1pysdk import V1Meta <EOL> meta = V1Meta ( ) <EOL> t0 = time . time ( ) <EOL> def process_queries ( queries ) : <EOL> for query in ( meta . asset_class ( type . Name ) for type in meta . AssetType ) : <EOL> for asset in query : <EOL> try : <EOL> asset . _v1_refresh ( ) <EOL> yield str ( asset ) <EOL> except Exception , e : <EOL> yield '<STR_LIT>' % ( asset . _v1_asset_type_name , asset . _v1_oid ) <EOL> all_assets = list ( process_queries ( ) ) <EOL> t1 = time . time ( ) <EOL> elapsed = t1 - t0 <EOL> count = len ( all_assets ) <EOL> print "<STR_LIT>" % ( count , elapsed , elapsed / count ) <EOL> out = open ( '<STR_LIT>' , '<STR_LIT:w>' ) . write ( '<STR_LIT:\n>' . join ( [ str ( a ) for a in all_assets ] ) ) </s>
