This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// form-hooks.ts | |
import React, { useCallback, useState } from 'react'; | |
export interface IuseInputProps { | |
type: string; | |
defValue: string | number; | |
} | |
const useInput = ({ type, defValue }: IuseInputProps) => { | |
const [value, setValue] = useState(defValue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
start_time = time.time() # Start Measure | |
# ** Source Code ** | |
end_time = time.time() # End Measure | |
print("time: ", end_time - start_time) # print performance time |